The input contains a single floating-point number *x* with exactly 6 decimal places (0 &lt; *x* &lt; 5).
import math
def calcu_height(b,h):
    obl=math.sqrt(b**2+h**2)
    return b*h/obl;
r=float(input())
for w in range(1,11):
    for h in range(1,11):
        if abs(r-calcu_height(w/2,h))<=10**(-6):
            print(w,end=' ')
            print(h,end='\n')
            exit(0)
