def solve(N):
    last = int(str(N)[len(N)-1])
    if last == 0 or last == 1 or last == 6 or last == 8:
        print("pon")
    elif last == 3:
        print("bon")
    else:
        print("hon")

N = open(0).read()
solve(N)