import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Read as T
import qualified Data.Vector as V

main :: IO ()
main = do
  let
    units = V.fromList . map T.pack $ ["pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"] :: V.Vector T.Text
  n <- unsafeTextToInt <$> T.getLine :: IO Int
  T.putStrLn $ units V.! (n `mod` 10)

unsafeTextToInt :: T.Text -> Int
unsafeTextToInt s = case T.signed T.decimal s of
  Right (n, _) -> n
{-# INLINE unsafeTextToInt #-}
