 n = int(input())
    nStr = str(n)
    print(nStr[len(nStr)-1])
    if nStr[len(nStr)-1] == '3':
        print('bon')
    elif nStr[len(nStr)-1]  == {'0','1','6','8'}:
        print('pon')
    else:
        print('hon')