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