p,q=map(int,input().split()) l=1 r=10**12 import math def takawin(x): if abs(x-1)<10**-6: return True elif (x**2-p)/x