#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string keye = "keyence";
  bool didpop = false;
  int cnt = 0;
  for (int i = 0; i < S.size(); ++i) {
    if (S[i] != keye[cnt] && !didpop) {
      while (S[i] != keye[cnt] && !S.empty()) {
        S.erase(S.begin() + i);
      }
      didpop = true;
    }
    if (S[i] == keye[cnt] && !S.empty()) {
      cnt++;
    }
  }
  if (S == keye) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
