let a = readLine()!
let b = a.index(a.endIndex, offsetBy: -1)
let c = a[b]
 
if c == "2" || c == "4" || c == "5" || c == "7" || c == "9" {
    print("hon")
} else if c == "0" || c == "1" || c == "6" || c == "8" {
    print("pon")
} else {
    print("bon")
}