#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  getline(cin, s);
  int n = s.size();
  for (int l = 0; l < 7; l++) {
    string f = k.substr(0, l), s = k.substr(l, 7 - l);
    if (s.find(f) != -1 && s.find(s) != -1) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
