#include <iostream>
#include <map>
using namespace std;

int main(){
  string s;
  cin >> s;
  string t = "keyence";
  int l = t.length(), r = s.length();
  if(r < l){
    cout << "NO" << endl;
    return 0;
  }
  for(int i = 0; i <= l; ++i){
    if(s.substr(0,i)+s.substr(r-(l-i),l-i) == t){
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
