a = gets.to_i
include Math
r = sqrt(a / 3.0).to_i
puts [r,1].max