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