S = input()
if "keyence"in S:
	print("YES")
	exit()
for i in range(len(S)-6):
	#print(S[0:i] + S[i+len(S)-7:len(S)])
	if S[0:i] + S[i+len(S)-7:len(S)] == "keyence":	
		print("YES")
		exit()
print("NO")