object Main extends App {
  val sc = new java.util.Scanner(System.in)
  println {
    sc.next().last.toInt match {
      case 2 | 4 | 5 | 7 | 9 => "hon"
      case 3 => "bon"
      case _ => "pon"
    }
  }
}
