STR = input()
FLAG = 0
STEP = 1
for s in STR:
	if STEP == 1:
		if s == "k":
			STEP = 2
		else:
			if FLAG == 0:
				FLAG = 1
	elif STEP == 2:
		if s == "e":
			STEP = 3
		else:
			if FLAG == 0:
				FLAG = 2
			elif FLAG == 2:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 3:
		if s == "y":
			STEP = 4
		else:
			if FLAG == 0:
				FLAG = 3
			elif FLAG == 3:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 4:
		if s == "e":
			STEP = 5
		else:
			if FLAG == 0:
				FLAG = 4
			elif FLAG == 4:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 5:
		if s == "n":
			STEP = 6
		else:
			if FLAG == 0:
				FLAG = 5
			elif FLAG == 5:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 6:
		if s == "c":
			STEP = 7
		else:
			if FLAG == 0:
				FLAG = 6
			elif FLAG == 6:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 7:
		if s == "e":
			STEP = 8
		else:
			if FLAG == 0:
				FLAG = 7
			elif FLAG == 7:
				pass
			else:
				print("NO")
				exit()
	elif STEP == 8:
		if FLAG == 0:
			FLAG = 8
		elif FLAG == 8:
			pass
		else:
			print("NO")
			exit()

if STEP == 8:
	print("YES")
else:
	print("NO")

