#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string org = s;
  bool judge = false;
  for (int start = 0; start < org.size() - 1; start++) {
    for (int end = start + 1; end < org.size(); end++) {
      s = org;
      string tmp = s.replace(start, end - start, "");
      cerr << tmp << endl;
      if (tmp == "keyence") judge = true;
    }
  }
  string answer = judge == true ? "YES" : "NO";
  cout << answer << endl;
}
