import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) from math import log2 p, q = map(int, read().split()) low = 0 high = 10 ** 36 while high - low > 1e-5: mid = (low + high) / 2 if mid ** 2 <= q * mid * log2(mid) + p: low = mid else: high = mid print(high)