from math import * P, Q = map(int, input().split()) l, r = 1, 10**12 while r-l>=1e-5: m = (l+r)/2 if m*m<=P+Q*m*log(m, 2): l = m else: r = m print(l)