#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void LoopUntilZeroInpput() {
  int hogegegege = 0;
  while (cin >> hogegegege && hogegegege != 0) {
  }
}
int main() {
  string S;
  cin >> S;
  const string key = "keyence";
  const int size = key.size();
  string subF, subB;
  for (int i = 1; i <= size; i++) {
    subF = key.substr(0, i);
    subB = key.substr(i, size - i);
    int pos = S.find(subF);
    if (pos != -1) {
      int pos2 = S.find(subB, pos + i);
      if (pos2 != -1) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
