#include <string.h>
int main(void){
 
	char s[100];
	char k[8] = "keyence";
	int i, ptr = 0, cut = 0, cutted = 0;
 
	scanf("%s",s);
 
	for(i=0;i<strlen(s);i++){

		if(s[i] == '\0'){
			break;
		}
		
		if(s[i] == k[ptr]){
			ptr++;
			if(cut == 1){
				cutted = 1;
			}
		}else{
			cut = 1;
			if(cutted == 1){
				ptr = 0;
				break;
			}
		}
	}
 
	if(ptr >= 7){
		printf("YES");
	}else{
		printf("NO");
	}
 
	return 0;
 
}