#include<cstdio>
#include<cstring>
using namespace std;
char s[105],s2[10]="keyence";
int n,i,a,b;
int main()
{
	scanf("%s",s);
	n=strlen(s);
	for(i=0;i<7;i++)if(s[i]!=s2[i])break;
	a=i;
	for(i=n-1;i>n-8;i--)if(s[i]!=s2[i+7-n])break;
	b=n-i-1;
	if(n>=7&&a+b>=7)printf("YES\n");
	else printf("NO\n");
	return 0;
}