The input contains a single floating-point number *x* with exactly 6 decimal places (0 &lt; *x* &lt; 5).
x = float(input())
for a in range(1, 10+1):
  for h in range(1, 10+1):
    if abs(x - (4/(a*a) + 1/(h*h)) ** (-0.5)) <= 10 ** -5:
      print(a, h)
      quit()