N = input()

try:
	if 0 <= int(N) <= 999:
      if N[-1] is 2 or 4 or 5 or 7 or 9:
        print('hon')
      elif N[-1] is 0 or 1 or 6 or 8:
        print('pon')
      elif N[-1] is 3:
        print('bon')
except ValueError:
  exit()