import Foundation
extension String {
    func therefoce() -> String{
        let s = self.suffix(1)
        if s == "3" {return "bon"}
        if s == "0"||s=="1"||s=="6"||s=="8" {return "pon"}
        else {return "hon"}
    }
}

func main(){
    print(readLine()!.therefoce())
}
main()
