S=raw_input()

if S=="keyence":
	print "YES"
	quit()

l=len(S)
l_amari=len(S)-7

for i in range( l - l_amari+1):
	str1=S[0:i]
	str2=S[i+l_amari:]
	if str1+str2 == "keyence":
		print "YES"
		quit()
else:
	print "NO"
