a = "keyence"

b = input()

k = len(b)
j = 0
jj = 0
kk = [0 for i in range(8)]
if k == 7:
	if a == b:
		print("YES")
	else:
		print("NO")
elif k >= 8:
	for i in range(k):
		if b[i] == a[j] and (jj == 0 or jj == 1 or jj == 2):
			j += 1
			if jj == 1:
				jj += 1
		elif jj == 0:
			jj = 1
		elif jj >= 2:
			print("NO")
			break
		if j == 7:
			if i != k-1:
				print("NO")
				break
			else:
				print("YES")
				break
else:
	print("NO")
