S = input()
moji = "keyence"
cnt = 0
flag = 0
for i in range(len(S)):
	if S[i] == moji[cnt]:
		cnt += 1
		if flag == 1:
			flag = 2
	else:
		if flag == 2:
			print("NO")
			exit()
		flag = 1
	if cnt == 7:
		print("YES")
		exit()
print("NO")