object Main extends App {
  import io.StdIn.readLine
  
  println {
    (readLine().last: @annotation.switch) match {
      case '2' | '4' | '5' | '7' | '9' => "hon"
      case '0' | '1' | '6' | '8' => "pon"
      case _ => "bon"
    }
  }
}