#include <bits/stdc++.h>
using namespace std;
int main() {
  string moji;
  cin >> moji;
  string key = "keyence";
  bool flag = false;
  int i = 0;
  int k = 0;
  while (i < moji.length()) {
    if (moji[i] == key[k]) {
      if (k == 6) {
        flag = true;
        break;
      }
      k += 1;
    }
    i += 1;
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
