import java.util.*

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    var kotlin=scan.nextLine().toInt()

    var x = kotlin%10
    if(x==2 || x==5 || x==4 || x==7 || x==9)
        println("hon")
    else if(x==0 || x==1 || x==6 || x==8)
        println("pon")
    else
        println("bon")
}
