import sys
input = sys.stdin.readline

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

if __name__ == '__main__':
    main()