import math def main(): p, q = map(int, input().split()) a = 0 for i in range(1, 10): x = 10 ** i if x >= p/x + q * math.log2(x): a = i break ng = 10 ** (a - 1) ok = 10 ** a while ok - ng > ng * (10 ** (-5)): mid = (ok + ng) / 2 if mid > p/mid + q * math.log2(mid): ok = mid else: ng = mid print(ng) main()