import sys
a = []
for l in sys.stdin:
    a.append(int(l))
if (a % 10 == 3):
   print('bon')
elif (a % 10 == 0) or (a % 10 == 1) or (a % 10 == 6) or (a % 10 == 8):
   print('pon')
else:
   print('hon')