#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  S += " ";
  bool judge = false;
  for (int i = 0; i < (int)(S.size()); ++i)
    for (int j = i; j < S.size(); ++j) {
      string str = "";
      for (int k = 0; k < i; ++k) str += S[k];
      for (int k = j + 1; k < S.size(); ++k) str += S[k];
      if (str == "keyence") judge = true;
    }
  if (judge)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
