object ProblemA extends App {
  val N = io.StdIn.readInt
  val last = N % 10
  val nameList = Array (("pon", Array(0, 1, 6, 8)), ("hon", Array(2, 4, 5, 7, 9)), ("bon", Array(3)))
  val gotList = nameList.filter( _._2.contains(last))
  println(gotList.head._1)
}
