#include <bits/stdc++.h>
using namespace std;
int main() {
  string q;
  cin >> q;
  string trg = "keyence";
  int start = 0;
  for (int i = 0; i < trg.size(); ++i) {
    for (int j = start; j < q.size(); ++j) {
      if (trg[i] == q[j]) {
        start = j;
        break;
      }
      if (i == trg.size() - 1 && j == q.size() - 1) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << "YES" << endl;
  return 0;
}
