#include <stdio.h>
#include <string.h>

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

int i;
int num;

scanf("%s",s);

num = strlen(s);

pt3 = s;

while(1){
if(0 == strlen(pt3)) break;
if(0 == (pt = strstr(pt3,"keyence"))){
 printf("NO\n");
 return 0;
}

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

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

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

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

}
