#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  getline(cin, S);
  string T = "", K = "keyence";
  int j = 0, count = 0;
  bool b = true;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) == K.at(j)) {
      T += S.at(i);
      j++;
      b = true;
      if (j > K.size() - 1) {
        if (i < S.size() - 1) count++;
        break;
      }
    } else {
      if (b) count++;
      b = false;
    }
  }
  if (count > 1 || T != K) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
}
