str = input()
a = str[-1:]
if a == 3:
	result = "bon"
elif (a == 0) or (a == 1) or (a == 6) or (a == 8):
  	result = "pon"
elif (a == 2) or (a == 4) or (a == 5) or (a == 7) or (a == 9):
  	result = "hon"
else:
  	result = "hon"
    
print(result)