object Main extends App {
  val n = new java.util.Scanner(System.in).nextInt
  n % 10 match {
    case 2 | 4 | 5 | 7 | 9 => println("hon")
    case 0 | 1 | 6 | 8 => println("pon")
    case 3 => println("bon")
  }
}