#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string tmp = "keyenceA";
  int l = -1;
  int r = -1;
  int k = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == tmp[k]) {
      k++;
      if (l != -1) r = 1;
    } else {
      if (r == 1) {
        cout << "NO" << endl;
        return 0;
      } else {
        l = 1;
      }
    }
  }
  if (k == tmp.size() - 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
