#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";
  int j = 0;
  cin >> S;
  for (int i = 0; i < (int)S.size(); i++) {
    if (words[j] == S[i]) {
      j++;
      if (j == (int)words.size()) {
        result = "YES";
        break;
      }
    }
  }
  cout << result << endl;
  return 0;
}
