#include <iostream>
#include <string>

using namespace std;

int main(void){
  string str;
  cin >> str;
  for(int i = 0; i <= 7; ++i){
    string str2 = str.substr(0, i) + str.substr(str.size()-7+i, 7-i);
    if (str2.compare("keyence") == 0){
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
