#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  long long n = s.size();
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) {
      string t = "";
      for (long long k = 0; k < n; k++) {
        if (i <= k && k < j) continue;
        t += s[k];
      }
      if (t == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "N0" << endl;
  return 0;
}
