#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string samp;
  cin >> samp;
  string ora = "keyence";
  int j = 0;
  int ok = 0;
  for (int i = 0; i < samp.length(); i++) {
    if (ok == 0 && samp[i] == ora[j]) {
      j++;
      ok = 1;
    } else if (ok == 1 && samp[i] != ora[j]) {
      ok == 2;
    } else if (ok == 2 && samp[i] == ora[j]) {
      j++;
    } else if (ok == 2 && j == 7) {
      cout << "YES" << endl;
    }
  }
  if (j != 7) {
    cout << "NO" << endl;
  }
  return 0;
}
