s = input()
asw='keyence'
l=7
m=len(s)
n=m-7
z=0
if n==0 and s==asw:
	print('YES')
elif n<0:
	print('NO')
elif n>0:
	for i in range(0, n):
		st = s[0:i]
		ed = s[i+n:m+1]
		con = st+ed
		if con==asw:
			print('YES')
			z=1
	if z==0:
		print('NO')