#https://atcoder.jp/contests/abc168/tasks/abc168_a

while True:
    #入力を受け取りｎに代入
    n=list(input())
    #１の位をとってくる

    poo=n[-1]

    if poo in "24579":
        print("hon")
    elif poo in "0168":
        print("pon")
    elif poo=="3":
        print("bon")

