fun main() {
    var n: Int
    do {
        n = readLine()?.toInt() ?: 0
    } while (n !in 0..999)

    val yomi = when (n % 10) {
        2, 4, 5, 7, 9 -> "hon"
        0, 1, 6, 8 -> "pon"
        else -> "bon"
    }
    print(yomi)
}