import math P,Q = [int(hoge) for hoge in input().split()] #N - QlogN/log2 < Pなるxの範囲 #f' = 1 - (Q/log2) /N #は N - Q/log2 と同符号より、 #N 0.000001: center = (ng + ok) / 2 if f(center): ok = center else: ng = center print(ok)