from math import * def f1(N): return N*N def f2(N): return P + Q*N*log2(N) P, Q = list(map(int, input().split())) th = 10**-5 l = 0 r = 10**20 while r-l > th: mid = (l+r) / 2 if mid == 1 or f1(mid) > f2(mid): r = mid else: l = mid print(r)