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