n = str(input())

if len(n) == 1:
    nd = n
else:
    nd = n[1:]

if nd == "2" or nd == "4" or nd == "5" or nd == "7" or nd == "9":
    print('hon')
elif nd == "0" or nd == "1" or nd == "6" or nd == "8":
    print('pon')
else:
    print('bon')