q=input()
if "k" in q and "eyence" in q:
	POL=q.replace("k","1").replace("eyence","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()

if "ke" in q and "yence" in q:
	POL=q.replace("ke","1").replace("yence","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()

if "key" in q and "ence" in q:
	POL=q.replace("key","1").replace("ence","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()
			
if "keye" in q and "nce" in q:
	POL=q.replace("keye","1").replace("nce","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()
if "keyen" in q and "ce" in q:
	POL=q.replace("keyen","1").replace("ce","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()
if "keyenc" in q and "e" in q:
	POL=q.replace("keyenc","1").replace("e","1")
	
	for i in range(len(POL)-1):
		if 1<=[POL[i],POL[i+1]].count("1")<=2:
			print("YES")
			exit()
		else:
			print("NO")
			exit()
			