#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  if (s.size() < 7) {
    cout << "NO" << endl;
    return 0;
  }
  long long n = s.size();
  for (long long i = 0; i < n; i++) {
    for (long long j = i + 1; j < n; j++) {
      string t = "";
      for (long long k = 0; k < n; k++) {
        if (k <= i || k >= j) t.push_back(s[k]);
        if (t == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
