#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "keyence";
  string sr;
  cin >> sr;
  for (int i = 0; i < sr.length(); i++) {
    for (int j = 0; j < sr.length(); j++) {
      string ss = sr;
      ss.erase(i, j);
      ;
      if (ss.find(s) != -1) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
}
