import sys
def input():
    return sys.stdin.readline()[:-1]


def test():
    # n,m,q = map(int, input().split())
    n = input()

    if n[-1] == "3":
        return("bon")
    elif n[-1] in {0,1,6,8}:
        return("pon")
    else:
        return("hon")

print(test())