s = input()
if s.endswith(2) == True or s.endswith(4) ==True or s.endswitch(5) == True or s.endswith(7) == True or s.endswith(9) == True:
  
  print('hon')
elif s.endswith(0) == True or s.endswith(1) == True or s.endswitch(6) == True or s.endswitch(8) == True:
  print('pon')
else:
  print('bon')
