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

int  main(){
const char *KEY1[7] = "k","ke","key","keye","keyen","keyenc","keyence";
const char *KEY2[7] = "eyence","yence","ence","nce","ce","e","";

char s[100];
char *pt;
char *pt2;
char *pt3;

int i;
int num;



scanf("%s",s);


pt3 = s;
num =0;

while(1){
if(0 == strlen(pt3)) break;

if(0 == (pt = strstr(pt3,KEY1[num]))){
 printf("NO\n");
 return 0;
}

if(0 == (pt = strstr(pt3,KEY2[num]))){
 num++;
　if(num >=7){
printf("NO\n");
return 0;
}}else{
printf("YES\n");
return 0;
}
}

}
