#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string K = "keyence";
  int nk = K.size();
  int ns = S.size();
  bool skip = true;
  for (int si = 0, ki = 0; ki < nk; ++ki) {
    if (K[ki] == S[si]) {
      ++si;
      continue;
    } else {
      if (skip == false) {
        cout << "NO" << endl;
        return 0;
      }
      while (si < ns && K[ki] != S[si]) {
        ++si;
      }
      if (si == ns) {
        cout << "NO" << endl;
        return 0;
      }
      skip = false;
      ++si;
    }
  }
  cout << "YES" << endl;
  return 0;
}
