import sys
     
data = []
     
for l in sys.stdin:
    data.append(str(l))
       
last = int(data[0][-1])
     
if last in [2,4,5,7,9]:
  print('hon')
elif last in [0,1,6,8]:
  print('pon')
else:
  print('hon')