import math

ans = int(raw_input("Angle (1), or height (2)? "))
if (ans == 2):
h_1 = float(raw_input("height: "))
theta = math.asin(h_1/24)
print theta*180/(math.atan(1)*4)
else:
theta = float(raw_input("theta: "))
theta = theta*(math.atan(1)*4)/180
t = float(raw_input("t: "))
v_0 = 48/t
#print v_0
c = float(158)
b = -v_0 * math.sin(theta)
a = float(-193)
t_0 = (-b - math.sqrt(b*b-4*a*c))/(2*a)
#print t_0
dist = t_0 * math.cos(theta) * v_0
print(dist)