#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int index = 0, pretermit = 0;
  bool isPretermit = false;
  string S, ANS = "keyence";
  cin >> S;
  for (auto c : S) {
    if (c == ANS[index]) {
      isPretermit = false;
      index++;
    } else if (index > 0) {
      if (!isPretermit) {
        isPretermit = true;
        pretermit++;
        if (pretermit == 2) {
          index = 0;
          pretermit = 0;
        }
      }
    }
  }
  if (index == ANS.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
