#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str = "";
  cin >> str;
  const string keyence = "keyence";
  bool isOutput = false;
  for (int i = 1; i < 7; i++) {
    string former = keyence.substr(0, i);
    string latter = keyence.substr(i, 7 - i);
    string::size_type pos_f = str.find(former);
    string::size_type pos_l = str.find(latter);
    while (pos_f != string::npos && pos_l != string::npos) {
      if (pos_f < pos_l) {
        cout << "YES" << endl;
        isOutput = true;
        break;
      } else {
        pos_l = str.find(latter, pos_l + latter.length());
      }
    }
    if (isOutput) {
      break;
    }
  }
  if (!isOutput) {
    cout << "NO" << endl;
  }
}
