#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int co = 0, co1 = 0, co2 = 0;
  string key = "keyence";
  for (int i = 0; i < n; i++) {
    if (s[i] != key[co]) {
      if (co1 == 0 || co2 != i - 1) {
        co1++;
      }
      co2 = i;
    } else {
      co++;
    }
  }
  if (co == 7 && co1 <= 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
