def main():
    N = input()
    if N[-1] in ['2', '2', '2', '2', '2']:
        print('hon')
    elif N[-1] == '3':
        print('bon')
    else:
        print('pon')


if __name__ == '__main__':
    main()
