#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;
  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);
    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;
    }
  }
  printf("NO\n");
}
