fun main(args:Array<String>) {
    val n = readLine()!!.takeLast(1).toInt()
    when(n) {
        2,4,5,7,9 -> "hon"
        0,1,6,8 -> "pon"
        3 -> "bon"
        else -> ""
    }.let { println(it) }
}