module Main where

import Control.Monad
import Control.Applicative
import Data.List

showingList :: [Int] -> String
showingList (x:[]) = show x
showingList (x:xs) = (show x) ++ " " ++ (showingList xs)

solve :: Int -> String
solve x
    | x == 3 = "bon"
    | x == 0 || x == 1 || x == 6 || x == 8 = "pon"
    | otherwise = "hon" 

main :: IO ()
main = do
    n <- readLn
    putStrLn $ solve (n `mod` 10)
