n = str(input())
length = int(len(n))
num = int(n[length-1])
if num == 2 or num == 4 or num == 5 or num == 7 or num == 9:
  print("pon")
elif num == 0 or num == 1 or num == 6 or num == 8:
  print("hon")
else:
  print("bon")