{-# LANGUAGE MultiWayIf #-}

import qualified Data.Vector.Unboxed as U
import qualified Data.Vector as V
import qualified Data.ByteString.Char8 as C
import Data.List
import Control.Monad
import Data.Ord

r :: Int -> IO (U.Vector Int)
r n = U.unfoldrN n (C.readInt . C.dropWhile (==' ')) <$> C.getLine

r' :: IO [Int]
r'  =   unfoldr    (C.readInt . C.dropWhile (==' ')) <$> C.getLine



main :: IO ()
main = do
    n <- (`mod` 10) <$> readLn
    putStrLn $ if
                | n `elem` [2,4,5,7,9] -> "hon"
                | n `elem` [0,1,6,8] -> "pon"
                | otherwise -> "bon"
