module Main where

import qualified Data.Vector                   as V
import qualified Data.Vector.Mutable           as VM

--for Primitive
import qualified Data.Vector.Unboxed           as VU
import qualified Data.Vector.Unboxed.Mutable   as VUM

-- import qualified Data.Foldable                 as F

-- Basic
import qualified Data.ByteString.Char8 as BS
import Control.Monad
import Data.List
import Data.Maybe
import Data.Char
import Data.Ord

count n = f $ n `mod` 10 
    where
        f x 
            | x  == 3 = "bon"
            | x `elem` [0,1,6,8] = "pon"
            | otherwise = "hon"

main :: IO ()
main = do
    n <- fst . fromJust <$> ( BS.readInt <$> BS.getLine ) :: IO Int
    putStr $  count n