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