#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool ans = false;
  for (int i = 0; i < S.size(); ++i) {
    if (S.substr(0, i) + S.substr(S.size() - 1 - i, S.size() - 1) == "keyence")
      ans = true;
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
