#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ref = "keyence";
  cin >> s;
  int i = 0;
  string sb;
  if (s.size() < ref.size()) return printf("NO\n"), 0;
  while (i < (int)s.size()) {
    int j = 0;
    if (ref[j] == s[i]) {
      int index = i;
      while (ref[j] == s[index] && j < (int)ref.size()) {
        j++;
        index++;
      }
      if (j == (int)ref.size()) return printf("YES\n"), 0;
      sb = ref.substr(j);
      cout << sb << endl;
      for (int z = index; z < (int)s.size() - (int)sb.size() + 1; z++) {
        string tmp = s.substr(z, sb.size());
        if (tmp == sb) return printf("YES\n"), 0;
      }
    }
    i++;
  }
  printf("NO\n");
}
