#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  for (int i = 0; i < (int)(7); i++) {
    if (s.at(i) != key.at(i)) {
      string sb = s.substr(s.size() - i - 1, 7 - i + 1);
      string skey = key.substr(i, key.size() - i + 1);
      cerr << sb << " " << skey << endl;
      if (sb == skey)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
