x=int(input())
if x>=100:
    x=str(x)
    if  x[2]==2 or 4 or 5 or 7 or 9:
  	    print('hon')
    elif x[2]==0 or 1 or 6 or 8:
  	    print('pon')
    else:
        print('bon')
x=int(x)
if x<100 and x>=10:
    x=str(x)
    if  x[1]==2 or 4 or 5 or 7 or 9:
  	    print('hon')
    elif x[1]==0 or 1 or 6 or 8:
  	    print('pon')
    else:
        print('bon')
x=int(x)
if  x<10:
    x=str(x)
    if  x[0]==2 or 4 or 5 or 7 or 9:
  	     print('hon')
    elif x[0]==0 or 1 or 6 or 8:
  	    print('pon')
    else:
        print('bon')
