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