N = int(input())

if N >= 100 && N[2] == 3:
  print('bon')
elif N >= 100 && N[2] == 1 or N[2] == 0 or N[2] == 6 or N[2] == 8:
  print('pon')
elif N >= 100 && N[2] == 2 or N[2] == 4 or N[2] == 5 or N[2] == 7 or N[2] == 9:
  print('hon')
elif N < 100 && N[1] == 3:
  print('bon')
elif N < 100 && N[1] == 1 or N[1] == 0 or N[1] == 6 or N[1] == 8:
  print('pon')
else:
  print('hon')