N = int(input("enter a number: "))
def f(N):
    if N < 1000:
        num = str(N)
        if num[-1] == "3":
            return "bon"
        elif num[-1] in ["0", "1", "6", "8"]:
            return "pon"
        else:
            return "hon"
    else:
        return "Please enter an interger between not exceeding 999"

print (f(N))