#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string s;
  cin >> s;
  string k = "keyence";
  long long int t = 0;
  long long int e = 0;
  for (long long int i = 0; i < s.size(); i++) {
    if (t < k.size() && s[i] == k[t]) {
      t++;
    } else {
      while (i < s.size() && s[i] != k[t]) {
        s.erase(s.begin() + i);
      }
      break;
    }
  }
  if (s == k) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
