#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p_i = pair<int, int>;
int main() {
  string S;
  cin >> S;
  string str;
  int num = S.size() - 7;
  for (int i = 0; i < S.size() - 7 + 1; ++i) {
    str = S.substr(0, i) + S.substr(i + num, 7 - i);
    if (str == "keyence" || S == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  cin >> S;
}
