N = list(map(int, input()))
if N[-1] == 3:
    print("bon")
elif N[-1] == 0:
    print("hon")
elif N[-1] == 1:
    print("hon")
elif N[-1] == 6:
    print("hon")
elif N[-1] == 8:
    print("hon")
else:
    print("pon")