import Foundation

////print("Hello, World!")
//
//let input = readLine()!
////print(input)
//
//let nums = input.components(separatedBy: " ")
////print(nums)
//
//let a = Int(nums[0])!
//let b = Int(nums[1])!
//print("\(a * b)")


let input = readLine()!
let inputLast = input.dropFirst(input.count - 1)
let nums = Int(inputLast)!

if nums == 2 || nums == 4 || nums == 5 || nums == 7 || nums == 9{
    print("hon")
} else if nums == 0 || nums == 1 || nums == 6 || nums == 8 {
    print("pon")
} else {
    print("bon")
}
