#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
void solve() {
  string s;
  cin >> s;
  string key;
  key = "keyence";
  bool found = false;
  for (int i = 0; i < (int)(key.size() - 1); i++) {
    string b = key.substr(0, i + 1);
    string e = key.substr(i + 1);
    bool ok = false;
    for (int i = 0; i < (int)(s.size()); i++) {
      if (b == s.substr(i, b.size()) && !ok) {
        ok = true;
        continue;
      }
      if (ok) {
        if (e == s.substr(i, e.size())) {
          found = true;
        }
      }
    }
  }
  for (int i = 0; i < (int)(s.size()); i++)
    if (key == s.substr(i, key.size())) found = true;
  if (found)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  solve();
  return 0;
}
