n = gets.chomp.to_f puts [((n/3)**0.5).to_i, 1].max