N = str(input())
hon = [2,4,5,7,9]

for i in hon:
    if N[-1] == str(i):
        print("hon")
        break
    elif N[-1] == "3":
        print("bon")
        break
    else:
        print("pon")
        break