# ========================
#       Information
# ========================

# Direct Link: https://www.hackerrank.com/challenges/find-angle/problem
# Difficulty: Medium
# Max Score: 10
# Language: Python

# ========================
#         Solution
# ========================

from math import degrees, atan2

AB = int(input())
BC = int(input())

RESULT = round(degrees(atan2(AB, BC)))
print(str(RESULT) + '°')

# ========================
#       Information
# ========================

# Direct Link: https://www.hackerrank.com/challenges/find-angle/problem
# Difficulty: Medium
# Max Score: 10
# Language: Python

# ========================
#         Solution
# ========================

from math import degrees, atan2

AB = int(input())
BC = int(input())

RESULT = round(degrees(atan2(AB, BC)))
print(str(RESULT) + '°')

# ======================== #       Information # ======================== # Direct Link: https://www.hackerrank.com/challenges/find-angle/problem # Difficulty: Medium # Max Score: 10 # Language: Python # ======================== #         Solution # ========================