import sys
sys.setrecursionlimit(10**6)


def main(input, print):
    n = list(input())
    if n[-1] in ['2','4','5','7','9']:
        print('hon')
    elif n[-1] in ['0','1','6','8']:
        print('pon')
    else:
        print('bon')


if __name__ == '__main__':
    main(sys.stdin.readline, print)
