import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.next()

  println(abc168a(n))
}

private fun abc168a(n: String): String {
  val last = n.last();

  if (last == '3') return "bon"

  if (last == '0' || last == '1' || last == '6' || last == '8') return "pon"

  return "hon"
}
