#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, Target;
  int counter = 0;
  cin >> S;
  Target = S;
  for (size_t i = 0; i < S.size(); i++) {
    for (size_t j = 0; j < S.size() - i - 1; j++) {
      Target.erase(i, j);
      if (!Target.empty() && Target == "keyence") {
        counter++;
      } else {
        Target = S;
      }
    }
  }
  if (counter != 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
