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 nums = Int(input)!

if nums < 10 {
    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")
    }
 
} else if nums < 100 {
    let numsString = String(nums)
    let place1String = numsString.dropFirst()
    let place1 = Int(place1String)!
    
    
    
    if place1 == 2 || place1 == 4 || place1 == 5 || place1 == 7 || place1 == 9 {
        print("hon")
    } else if place1 == 0 || place1 == 1 || place1 == 6 || place1 == 8 {
        print("pon")
    } else {
        print("bon")
    }
} else if nums < 1000 {
    let numsString = String(nums)
    let place1String = numsString.dropFirst(2)
    let place1 = Int(place1String)!
    
    if place1 == 2 || place1 == 4 || place1 == 5 || place1 == 7 || place1 == 9 {
        print("hon")
    } else if place1 == 0 || place1 == 1 || place1 == 6 || place1 == 8 {
        print("pon")
    } else {
        print("bon")
    }
}
