#include <bits/stdc++.h>
using namespace std;
int main() {
  const string s = "keyence";
  string t;
  cin >> t;
  if (t == s) {
    puts("YES");
    return 0;
  } else {
    long long n = t.size();
    for (long long i = 0; i < (long long)(n); i++) {
      for (long long j = i; j < n; j++) {
        string S = "";
        for (long long k = 0; k < (long long)(n); k++) {
          if (i <= k && k <= j) {
            continue;
          } else {
            S += t[k];
          }
        }
        cout << S << endl;
        if (S == s) {
          puts("YES");
          return 0;
        }
      }
    }
  }
  puts("NO");
}
