from math import sqrt

C,H =50,30

def calc(D):
    return sqrt((2*C*D)/H)

D = [int(i) for i in input().split(",")]  #splits in comma position and set up in list
D = [int(i) for i in D] # converts string to integer
D = [calc(i) for i in D]  # returns floating value by calc method for every item in D
D = [round(i) for i in D]  #All the floating values are rounded
D =[
    str(i) for i in D
] # All the integers are converted to string to be able to apply join operation
print(",".join(D))