N = int(input())
a = 0

if N>=100:
    a = N % 100
elif N >= 10:
    a = N % 10
else:
    a = N

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