#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;
  cin >> s;

  string ret = "NO";
  
  for(int i = 0;i < 8;i++){
    string sf = s.substr(0,i);
    string sl = s.substr(s.length()-(7-i),7-i);

    if(sf + sl == "keyence"){
      ret = "YES";
      break;
    }
  }
  cout << ret << endl;
}
