#include <stdio.h>

int  main(){
char *KEY = "keyence";
char s[100];
char *pt;
int i;

scanf("%s",s);

if(0 == (pt = strstr(s,"keyence"))){
 printf("NO\n");
 return;
}

for(i=0;;i++;){
if(*pt == KEY[i]){
 pt++;
}else{
 break;
}
}

if(0 == (pt = strstr(pt,&KEY[i]))){
 printf("NO\n");
 return 0;
}

for(;;i++;){
if(*pt == KEY[i]){
 pt++;
}else{
 break;
}
}
if(i>=7){
printf("YES\n");
return 0;
}

printf("NO\n");
return 0;


}
