import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextLine

  val z = N.last match {
    case '2' | '4' | '5' | '7' | '9' => "hon"
    case '0' | '1' | '6' | '8' => "pon"
    case '3' => "bon"
  }
  println(z)
}
