#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence";
  for (int i = 0; i < 8; i++) {
    string ns = s.substr(0, i) + s.substr(n - 1 - i);
    if (ns == t) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
