#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using P = pair<ll, ll>;
const ll INF = 5e15;
const ll MOD = 1e9 + 7;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  for (ll i = 0; i < key.size(); i++) {
    string s = key.substr(0, i);
    string t = key.substr(i);
    for (ll j = 0; j < S.size(); j++) {
      if (S.substr(j, s.size()) != s) continue;
      for (ll k = j + s.size(); k < S.size(); k++) {
        if (S.substr(k, t.size()) == t) {
          cout << "YES\n";
          return 0;
        }
      }
    }
  }
  cout << "NO\n";
  return 0;
}
