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