#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
int main(int argc, char const *argv[]) {
  string words = "keyence";
  string S, result = "NO";
  cin >> S;
  for (int i = 0; i < (int)S.size(); i++) {
    for (int j = 0; j < (int)S.size(); j++) {
      S = "";
      for (int k = 0; k < (int)S.size(); k++) {
        if (i <= k && k <= j) {
          continue;
        } else {
          S.push_back(words[k]);
        }
        if (S == words) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
