"""
Question 6 :
    Write a program that calculates and prints the value
    according to the given formula :
    Q = Square root of [(2 * C * D)/H]
    Following are the fixed values should be input to your program
    in a comma-separated sequence. Example let us assume the following
    comma separated input sequence is given to the program : 100,150.180
    The output of the program should be : 18,22,24

    Hints : If the output received is in decimal form, it should be
    rounded off to its nearest value (for example, it the output received
    is 26.0, it should be printed as 26) In case of input data begin supplied
    to the question, it should be assumed to be a console input
"""

# Solution :

import math
c = 50
h = 30
value = []
items = [x for x in input("Enter a number : ").split(',')]
for d in items:
    value.append(str(int(round((math.sqrt(2*c*float(d)/h))))))

print(",".join(value))

"""
Output : 
    Enter a number : 100,150,180
    18,22,24
"""