#include <bits/stdc++.h>

using namespace std;


string o = "keyence";
int main () {
  string s;
  cin >> s;
  bool ok = 0;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < s.size(); j++ ) {
      if (s.substr(0, i)+s.substr(j) == o) {
        ok = 1;
      }
    }
  }
  cout << ((ok) ? "YES" : "NO") << endl;
}