import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val n = in.readLine()

    val c = n.charAt(n.length - 1).toInt - '0'

    out.println(
      if (List(2, 4, 5, 7, 9).contains(c)) {
        "hon"
      } else if (List(0, 1, 6, 8).contains(c)) {
        "pon"
      } else {
        "bon"
      }
    )

    out.flush()
  }
}
