n = int(input())

if n == 2:   print("hon")
elif n == 4: print("hon")
elif n == 5: print("hon")
elif n == 7: print("hon")
elif n == 9: print("hon")
elif n == 0: print("pon")
elif n == 1: print("pon")
elif n == 6: print("pon")
elif n == 8: print("pon")
else:        print("bon")
