#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  size_t len = S.size();
  for (size_t i = 0; i < len; i++) {
    for (size_t j = i; j < len; j++) {
      string b = S.substr(0, i);
      string e = S.substr(j);
      if ("" + b + e == "keyence") {
        cout << "YES" << endl;
        return 1;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
