import java.util.Scanner

import scala.io.StdIn._
object Main extends App {

  val n = scala.io.StdIn.readLine()

  def solve() = {
    n.takeRight(1) match {
      case "3" => "bon"
      case s if s == "0" || s == "1" || s == "6" || s == "8" => "pon"
      case _ => "hon"
    }
  }

  println(solve())

}

