#include <iostream>
#include <string>
using namespace std;

int main(void) {
  int index = 0, pretermit = 0, start;
  bool isPretermit = false;
  string S, ANS = "keyence";
  cin >> S;

  if (S.find(ANS) != string::npos) {
    cout << "YES" << endl;
    return 0;
  }

  for (int i = 0; i < S.length(); i++) {
    if (S[i] == ANS[index]) {
      isPretermit = false;
      if (index == 0)
        start = i;
      index++;
    } else if (index > 0) {
      if (!isPretermit) {
        isPretermit = true;
        pretermit++;
        if (pretermit == 2) {
          index = 0;
          pretermit = 0;
        }
      }
    }
    if (index == ANS.length()) {
      if (start == 0 || i == S.length() - 1) {
        cout << "YES" << endl;
        return 0;
      } else {
        index = 0;
        pretermit = 0;
      }
    }
  }

  else cout << "NO" << endl;

  return 0;
}
