#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  const string t = "keyence";
  bool ans = false;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      string ss;
      ss = s.substr(0, i);
      ss += s.substr(j, 7 - i);
      if (ss == t) ans = true;
    }
  }
  cout << (ans ? "YES" : "NO") << endl;
}
