func main() {
    let n = Int(readLine()!)!
    switch n % 10 {
    case 2, 4, 5, 7, 9:
        print("hon")
    case 0, 1, 6, 8:
        print("pon")
    default:
        print("bon")
    }
}

main()
