#include<bits/stdc++.h>

using namespace std;

int main()
{
	string s = "keyence";
	string sr;
	cin>>sr;
	for(int i=0;i<sr.length();i++){
		for(int j=0;j<sr.length();j++){
			string ss = sr;
			ss.erase(i,j);;
			if(ss==s){
				cout<<"YES";
				return 0;
			}
		}
	}
	cout<<"NO";
} 
