N = int(input())
a = len(N)

if a == 2 and N[1] == 3:
  print('bon')
elif a == 2 and N[1] == 0 or N[1] == 1 or N[1] == 6 or N[1] == 8:
  print('hon')
elif a == 2 and N[1] == 2 or N[1] == 5 or N[1] == 7 or N[1] == 9:
  print('pon')
elif a == 3 and N[2] == 3:
  print('bon')
elif a == 3 and N[2] == 2 or N[2] == 5 or N[2] == 7 or N[2] == 9:
  print('pon')
elif elif a == 3 and N[2] == 0 or N[2] == 1 or N[2] == 6 or N[2] == 8:
  print('hon')
elif a == 1 and N[0] == 3:
  print('bon')
elif a == 1 and N[0] == 0 or N[0] == 1 or N[0] == 6 or N[0] == 8:
  print('hon')
elif a == 1 and N[0] == 2 or N[0] == 5 or N[0] == 7 or N[0] == 9:
  print('pon')