#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T>
using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll MOD = 1e9 + 7;
const ll inf = 1LL << 60;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = i + 1; j < s.size(); j++) {
      string temp;
      for (int k = 0; k < s.size(); k++) {
        if (k < i || j < k) {
          temp += s[k];
        }
      }
      if (temp == "keyence") {
        cout << "YES" << endl;
        ;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  ;
  return 0;
}
