#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  string s;
  cin >> s;
  string t("keyence");
  if (s.size() < t.size()) {
    cout << "NO" << endl;
  } else if (s.find(t) == 0 || s.rfind(t) == (s.size() - t.size())) {
    cout << "YES" << endl;
  } else {
    bool yes(false);
    for (int i = 0; i < t.size(); i++) {
      string one = t.substr(0, i + 1);
      string other = t.substr(i + 1);
      int one_pos = s.find(one);
      int other_pos = s.rfind(other);
      if (one_pos == 0 && other_pos >= one_pos + i) {
        yes = true;
        break;
      }
    }
    cout << ((yes) ? "YES" : "NO") << endl;
  }
  return 0;
}
