import java.lang.Exception
import java.util.*

fun main() {
    val scanner = Scanner(System.`in`)

    val input = scanner.nextInt()

    val n = when(input.toString().length) {
        1 -> input
        2 -> input % 10
        3 -> input % 100 % 10
        else -> throw Exception("input number is unexpected")
    }

    when(n) {
        2, 4, 5, 7, 9 ->
            println("hon")
        0, 1,6, 8 ->
            println("pon")
        3 ->
            println("bon")
        else ->
            throw Exception("unexpected Exception")
    }
}