#include <bits/stdc++.h>
using namespace std;
int asc(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int desc(const void *a, const void *b) { return *(int *)b - *(int *)a; }
int main() {
  string s, t;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    ;
    return 0;
  }
  for (int(i) = 0; (i) < (s.size()); ++(i)) {
    for (int(j) = (i); (j) < (s.size()); ++(j)) {
      t = s;
      t.erase(i, j);
      if (t == "keyence") {
        cout << "YES" << endl;
        ;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  ;
  return 0;
}
