S=raw_input()
t="keyence"

for i in range(8):
	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==idx2:
			print "YES"
			quit()
		else:
			if idx2-len(p1)+7==len(S):
				print "YES"
				quit()
else:
	print "NO"

