#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char str[101];
  string targ = "keyence";
  int targ_index = 0;
  cin.getline(str, 101);
  for (int i = 0; i < 101; i++) {
    if (targ_index < targ.length() && str[i] == targ[targ_index]) {
      targ_index++;
    }
  }
  if (targ_index == targ.length()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
