import sys

N = sys.argv[1]

dev_type = ""
  
if (N%10 == 2) or (N%10 == 4) or (N%10 == 5)or (N%10 == 7)or (N%10 == 9):
  dev_type == "hon"
elif (N%10 == 0) or (N%10 == 1) or (N%10 == 6)or (N%10 == 8):
  dev_type == "pon"
else:
  dev_type = "bon"

print(dev_type)

