fun main(Args:Array<String>){
    val n = readLine()!!.toInt();
    val mod = n % 10;
    if(mod == 3)println("hon");
    else if(mod == 0 || mod == 1 || mod == 6 || mod == 8) println("pon")
    else println("bon")
}