#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  string terg = "keyence";
  int length;
  int f = 0;
  cin >> str;
  length = str.size() - terg.size();
  for (int i = 0; i < str.size() - length; i++) {
    int j = 0;
    int k = 0;
    do {
      k++;
      if (j == i) {
        j = j + length + 1;
      } else {
        j++;
      }
    } while (str[j] == terg[k] && k < terg.size());
    if (k == terg.size()) {
      f = 1;
    }
  }
  cout << (f ? "YES" : "NO") << endl;
  return 0;
}
