#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, base = "keyence";
  cin >> s;
  for (int i = 0; i < s.size() - 6; i++) {
    string x = s.substr(i, 7);
    if (x == base) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
