#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, key = "keyence";
  cin >> s;
  auto solve = [&](int l) {
    int r = 1;
    while (l + r < s.size()) {
      string t = s;
      t.erase(l, r);
      if (t == key) {
        cout << "YES" << endl;
        return true;
      }
      r++;
    }
  };
  for (int i = 0; i < (int)(s.size()); i++) {
    if (solve(i)) return 0;
  }
  cout << "NO" << endl;
  return 0;
}
