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



if __name__ == '__main__':
    main()
