import java.lang.IllegalArgumentException
import java.util.*

fun main() {
    val scanner = Scanner(System.`in`)
    scanner.use { scan ->
        val n = scan.nextInt()
        val classifier = classifier(n % 10)
        println(classifier)
    }
}

fun classifier(number: Int): String = when (number) {
    2, 4, 5, 7, 9 -> "hon"
    0, 1, 6, 8 -> "pon"
    3 -> "bon"
    else -> throw IllegalArgumentException("out of range[0-9] number: $number")
}