#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  string t = "keyence";
  long long x = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (t[x] == s[i]) {
      x++;
    }
    if (x == 7) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
  return 0;
}
