n=int(input())
if n <= 9:
    if str(n)[0]==3:
        print("bon")
    elif str(n)[0]== 0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")
elif n <= 99:
    if str(n)[0]==3:
        print("bon")
    elif str(n)[0]== 0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")
else:
    if str(n)[0]==3:
        print("bon")
    elif str(n)[0]== 0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")