import java.lang.RuntimeException

fun main(args: Array<String>) {
    val line = readLine()!!.trim()
    val n = line.toInt()

    val hitoketa = n % 10
    val yomikata: String = if (listOf(2, 4, 5, 7, 9).contains(hitoketa)) {
        "hon"
    } else if (listOf(0, 1, 6, 8).contains(hitoketa)) {
        "pon"
    } else if (hitoketa == 3) {
        "bon"
    } else {
        throw RuntimeException("Oasii")
    }

    println(yomikata)
}