#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)(key.size()); i++) {
    if (key[i] != s[i]) {
      string subs = s.substr(s.size() - key.size() + i);
      string subk = key.substr(i);
      if (subs == subk) {
        cout << "YES" << endl;
      } else {
        cout << "No" << endl;
      }
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
