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