import java.util.Scanner;

fun main (args: Array<String>) {
  val input = Scanner(System.`in`)
  
  while (input.hasNext()) {
    val lastDigit = input.nextInt() % 10;
    
    when (lastDigit) {
      2, 4, 5, 7, 9 -> println("hon")
      0, 1, 6, 8 -> println("pon")
      3-> println("bon")
      else -> {}
    }
  }
}