#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

int main(){
	string s,x,a="keyence";
	cin>>s;
	int n=s.length();
	int f=0;
	for(int i=0;i<=7;i++){
		x=s.substr(0,i)+s.substr(n-7+i,7-i);
		if(x==a) f=1;
	}
	if(f) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
} 