#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string S;
  cin >> S;
  int len = S.size();
  string keyence = "keyence";
  int keyptr = 0;
  int cut = 0;
  int lastMatch = 0;
  for (int i = 0; i < len; i++) {
    if (keyptr >= keyence.size()) break;
    if (S[i] == keyence[keyptr]) {
      if (lastMatch > 0 && i - lastMatch > 1) cut++;
      lastMatch = i;
      keyptr++;
    }
  }
  if (cut < 2 && keyptr == keyence.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
