input_line = int(input())
#print(input_line)

first=input_line%10
#print(first)

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