N = gets.to_i def f(r) r * r * Math::PI <= N end ok = 1 ng = 10 ** 10 while (ok - ng).abs > 1 r = (ok + ng) / 2 if f(r) ok = r else ng = r end end puts r