P, Q = gets.split.map(&:to_i) ok = 1 ng = 10 ** 18 1000.times do n = (ok + ng) / 2.0 if n ** 2 <= P + Q * n * Math.log2(n) ok = n else ng = n end end puts ok