#include <bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	if (s=="keyence"){
		cout<<"YES"<<endl;
		return 0;
	}
	for (int i=0;i<s.size();i++)
		for (int j=1;j+i<=s.size();j++){
			string ss=s.substr(0,i)+s.substr(i+j);
			//cout<<i<<" "<<j<<" "<<ss<<endl;
			if (ss=="keyence"){
				cout<<"YES"<<endl;
				return 0;
			}
		}
	cout<<"NO"<<endl;
	return 0;
}