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