import java.util.Scanner

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