n=int(input())
h='hon'
p='pon'
b='bon'
if n>=100:
    if n%100==3:
        print(b)
    elif n%100==0 or n%100==1 or n%100==6 or n%100==8:
        print(p)
    else:
        print(h)
if 100>n>=10:
    if n%100==3:
        print(b)
    elif n%100==0 or n%100==1 or n%100==6 or n%100==8:
        print(p)
    else:
        print(h)
if 10>n:
    if n%100==3:
        print(b)
    elif n%100==0 or n%100==1 or n%100==6 or n%100==8:
        print(p)
    else:
        print(h)
