#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string target = "keyence";
  int ti = 0;
  string S;
  cin >> S;
  for (int i = 0; i < S.size(); i++) {
    if (ti < target.size() && S[i] == target[ti]) {
      ti++;
    }
  }
  if (ti == target.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
