n = int(input())
list = []
while n > 0:
    list.append(n % 10)
    n //= 10

if (list[0]) == 2 or 4 or 5 or 7 or 9:
    print("hon")
elif (list[0]) == 0 or 1 or 6 or 8:
    print("pon")
else: #(list[0]) == 3
    print("bon")