N = int(input())
S = N % 10
if(S == 0):
  print('pon')
else if(S == 1):
  print('pon')
else if(S == 6):
  print('pon')
else if(S == 8):
  print('pon')
else if(S == 3):
  print('bon')
else:
  print('hon')
