iroha :: Char -> String
iroha irh
    | elem irh "24579" = "hon"
    | elem irh "0168" = "pon"
    | otherwise = "bon"

main = do
    input <- getLine
    -- let onesPlace = last input
    -- let answer = iroha onesPlace
    putStrLn(iroha (last input))
