conv '2' = "hon"
conv '4' = "hon"
conv '5' = "hon"
conv '7' = "hon"
conv '9' = "hon"
conv '0' = "pon"
conv '1' = "pon"
conv '6' = "pon"
conv '8' = "pon"
conv '3' = "bon"
conv _ = "hoge"

main = do
    l <- getLine
    putStrLn (conv (last l))