import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) mod=10**9+7 def main(): import math P,Q=MI() def f(x): return x**2<=P+Q*x*math.log2(x) ok=1 ng=10**16 for _ in range(10**5): x=(ok+ng)/2 if f(x): ok=x else: ng=x print(ok) main()