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

first=input_line%10
print(first)

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