package main

import "fmt"

func main() {
    var n int
    fmt.Scan(&n)

    var nMod int = n % 10

    if nMod == 3 {
        fmt.Println("pon")
        return
    }else if nMod == 0 || nMod == 1  || nMod == 6  || nMod == 8{
        fmt.Println("hon")
        return
    }else {
        fmt.Println("bon")
    }
}