s = input()
if s[-1] == 2:
	print('hon')
elif s[-1] == 4:
	print('hon')
elif s[-1] == 5:
	print('hon')
elif s[-1] == 7:
	print('hon')
elif s[-1] == 9:
	print('hon')
elif s[-1] == 0:
	print('pon')
elif s[-1] == 1:
	print('pon')
elif s[-1] == 6:
	print('pon')
elif s[-1] == 8:
	print('pon')
else:
	print('bon')