S=raw_input()
t="keyence"


for i in range(1,7):
	p1,p2=t[:i] , t[i:]

	idx1=S.find(p1)
	idx2=S.find(p2)

	if 0<=idx1 and 0<=idx2  and idx1<idx2:
		if idx1+len(p1)==idx2:	#Renzoku
			if  0<idx1 and idx2+len(p2)<len(S)-1:
				pass
			else:
				print "YES"
				quit()

		else:   #Bundan
			if idx2+len(p2)-idx1==len(S):
				print "YES"
				quit()

else:
	print "NO"

