# Your code here!
N = gets
last_char = N[-1]
if last_char == '3'
    puts ('bon')
elsif last_char == '2' or last_char == '4' or last_char == '5' or last_char == '7' or last_char == '9'
    puts ('hon')
else
    puts ('pon')
end
