main = do
  w <-  getLine
  putStrLn $ ans $ last w

ans n 
 | n == '0' = "pon"
 | n == '1' = "pon"
 | n == '2' = "hon"
 | n == '3' = "bon"
 | n == '4' = "hon"
 | n == '5' = "hon"
 | n == '6' = "pon"
 | n == '7' = "hon"
 | n == '8' = "pon"
 | n == '9' = "hon"