#include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
using vi = vector<i64>;
using vvi = vector<vi>;
int main() {
  string s, t = "keyence";
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = i; j < s.size(); j++) {
      string ss = "";
      for (int k = 0; k < s.size(); k++) {
        if (!(i <= k && k <= j)) ss += s[k];
      }
      if (ss == t) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
