#include <bits/stdc++.h>
using namespace std;
int main() {
  string k = "keyence";
  int np = 0;
  int use = 0;
  string s;
  cin >> s;
  for (long long i = 0; i < (s.size()); i++) {
    if (s[i] == k[np]) {
      if (use == 1) use = 2;
      np++;
    } else {
      if (use == 0) {
        use = 1;
      }
      if (use == 2) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  if (np == k.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
