def solve():
    if s[-1] == "3":
        print("bon")
    elif s[-1] in "0168":
        print("pon")
    else:
        print("hon")
    return

#n, m = [int(ii) for ii in raw_input().split()]
s = raw_input()