#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  string key = "keyence";
  size_t k = 0;
  size_t i = 0;
  while (k < key.size()) {
    i = str.find(key[k], i);
    if (i == string::npos) {
      break;
    }
    ++k;
  }
  if (k == key.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
