fun main() {
    val builder = StringBuilder()

    val n = readInputLine().toInt()

    builder.appendln(
        when(n % 10) {
            2,4,5,7,9 -> "hon"
            0,1,6,8 -> "pon"
            3 -> "bon"
            else -> ""
        }
    )

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
