import java.util.Scanner

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

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

  def solve() = {
    n % 10 match {
      case 3 => "bon"
      case 0 | 1 | 6 | 8 => "pon"
      case _ => "hon"
    }
  }

  println(solve())

}

