#include <bits/stdc++.h>
using namespace std;
 
int main(){
 
  string S,keyence;
  int sizedif;
  cin>>S;
  keyence="keyence";
  sizedif=S.size()-7;
	for(int k=0;k<7;k++){
      if(S.at(k)!=keyence.at(k)){
    	if(S.compare(k+sizedif,7-k,keyence,k,7-k)==0) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
		return 0;
       }
    }
  cout<<"YES"<<endl;
}