x = eval(input())

if x[-1] == "0" or x[-1] == "1" or x[-1]== "6" or x[-1]=="8":

    print("pon")

elif x[-1] == "3":

    print("bon")

else:

    print("hon")
n=eval(input())

x=int(n[-1])

if x in [2,4,5,7,9]:print("hon")

elif x in [0,1,6,8]:print("pon")

else :print("bon")

x = eval(input())
if x[-1] == "0" or x[-1] == "1" or x[-1] == "6" or x[-1] == "8":
    print("pon")
elif x[-1] == "3":
    print("bon")
else:
    print("hon")

n = eval(input())
x = int(n[-1])
if x in [2, 4, 5, 7, 9]:
    print("hon")
elif x in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

-x = eval(input()) -if x[-1] == "0" or x[-1] == "1" or x[-1] == "6" or x[-1] == "8": +n = eval(input()) +x = int(n[-1]) +if x in [2, 4, 5, 7, 9]: +    print("hon") +elif x in [0, 1, 6, 8]: -elif x[-1] == "3": +else: -else: -    print("hon")