#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  string ans = "keyence";
  if (s.find(ans) <= s.length()) {
    cout << "YES" << endl;
    return 0;
  }
  for (size_t i = 1; i < 7; i++) {
    string up = ans.substr(0, i);
    string lo = ans.substr(i, 7 - i);
    for (int j = 0; j < s.length() - 7; j++) {
      if (s.substr(j, up.length()) == up) {
        for (int k = j + up.length() - 1; k < s.length() - lo.length() + 1;
             k++) {
          if (s.substr(k, lo.length()) == lo) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
