N = map(int,input())

s = str(N)
if s[-1] == 2 and s[-1]== 4 and s[-1]== 5 and s[-1]== 7 and s[-1]== 9:
    print("hon")
elif s[-1]== 0 and s[-1]== 1 and s[-1]== 6 and s[-1]== 8:
    print("pon")
else:
    print("bon")