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