#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence";
  string aa;
  int n = 0;
  cin >> aa;
  for (int i = 0; i < aa.size(); i++) {
    if (key[n] == aa[i]) {
      n++;
    }
    if (n == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
