a,b = gets.split.map(&:to_f) p (1.0..1e18).bsearch{|t| Math::log2(t) < (t - a/t)/b}