#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
int dx4[4] = {1, 0, -1, 0}, dy4[4] = {0, 1, 0, -1};
int main() {
  string s;
  string key = "keyence";
  cin >> s;
  bool ok = false;
  for (int beflen = 1; beflen < 7; beflen++) {
    if (ok) break;
    int aftlen = 7 - beflen;
    string befstr = key.substr(0, beflen);
    string aftstr = key.substr(beflen, aftlen);
    int aftbgn = 1000;
    for (int cnt = 0; cnt < s.length() - beflen; cnt++) {
      if (s.substr(cnt, beflen) == befstr) {
        aftbgn = cnt + beflen;
        break;
      }
    }
    for (int cnt = aftbgn; cnt <= s.length() - aftlen; cnt++) {
      if (s.substr(cnt, aftlen) == aftstr) {
        ok = true;
        break;
      }
    }
  }
  if (ok) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
