#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t, key = "keyence";
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = 1; i + j < n; j++) {
      if (s.substr(0, i) + s.substr(j) == key) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
