#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s, t = "keyence";
  cin >> s;
  bool b = false;
  long long j = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] != t[j]) {
      if (b) {
        puts("NO");
        return 0;
      } else
        i += s.size() - t.size() - 1;
      b = true;
    }
    j++;
  }
  puts("YES");
  return 0;
}
