N = input()

last = N[-1]

if last == "2":
  ans = "hon"
elif last == "4":
  ans = "hon"
elif last == "5":
 ans = "hon"
elif last =="7":
 ans = "hon"
elif last == "9"
  ans = "hon"
elif last == "0":
  ans = "pon"
elif last == "1":
  ans = "pon"
elif last == "6":
  ans = "pon"
elif last == "8":
  ans = "pon"
else:
  ans = "bon"

print(ans)
