#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  if (s == key) {
    cout << "YES" << endl;
    return 0;
  }
  string tmp = "";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != key[i]) {
      for (int j = i; j < s.size(); j++) {
        string t = tmp;
        int idx = j;
        while (idx != s.size()) {
          t += s[idx++];
          if (t.size() > key.size()) break;
          if (t == key) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
      cout << "NO" << endl;
      return 0;
    }
    tmp += s[i];
  }
}
