#include <bits/stdc++.h>
using namespace std;
string S;
int main(void) {
  cin >> S;
  string target = "keyence";
  int searching = 0;
  int Slen = (int)S.size();
  for (int cur = 0; cur < Slen; cur++) {
    if (S[cur] == target[searching]) {
      searching++;
    }
  }
  if (searching == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
