# Enter your code here. Read input from STDIN. Print output to STDOUT
import math

AB,BC=int(input()),int(input())
hype=math.hypot(AB,BC)                      #to calculate hypotenuse
res=round(math.degrees(math.acos(BC/hype))) #to calculate required angle 
degree=chr(176)                             #for DEGREE symbol
print(res,degree, sep='')
# Enter your code here. Read input from STDIN. Print output to STDOUT
import math

AB,BC=int(input()),int(input())
hype=math.hypot(AB,BC)                      #to calculate hypotenuse
res=round(math.degrees(math.acos(BC/hype))) #to calculate required angle 
degree=chr(176)                             #for DEGREE symbol
print(res,degree, sep='')
# Enter your code here. Read input from STDIN. Print output to STDOUT #to calculate hypotenuse #to calculate required angle #for DEGREE symbol