#include <bits/stdc++.h>
char s1[110],s2[10]="keyence";
int n,i,j,k;
int main()
{
	scanf("%s",s1);
	n=strlen(s1);
	for (i=0;(i<7) && (s1[i]==s2[i]);i++);
	for (j=1;(n-j>=0) && (7-j>=0) && (s1[n-j]==s2[7-j]);j++);
	k=i+j-1;
	if (k>=7) printf("YES");
		else printf("NO");
	return 0;
}