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