fun main(){


    val inputNum = readLine()?.toInt()

    val result =  when(inputNum?.rem(10)){
        2,4,5,7,9 -> "hon"
        0,1,6,8 -> "pon"
        3 -> "bon"
        else -> ""
    }
    
    print(result)

}