#include <bits/stdc++.h>
using namespace std;
bool solve(const string S) {
  const string K = "keyence";
  int pos = 0;
  for (int i = 0; i < S.length(); i++) {
    if (S[i] == K[pos]) {
      pos++;
      if (pos >= 7) return true;
    }
  }
  return false;
}
int main() {
  string S;
  cin >> S;
  bool ans = solve(S);
  cout << (ans ? "YES" : "NO") << endl;
  return 0;
}
