n = input()
if n[len(n) - 1] == 2 or n[len(n) - 1] == 4 or n[len(n) - 1] == 5 or n[len(n) - 1] == 7 or n[len(n) - 1] == 9:
    print("hon")
elif n[len(n) - 1] == 0 or n[len(n) - 1] == 1 or n[len(n) - 1] == 6 or n[len(n) - 1] == 8:
    print("pon")
else:
    print("bon")