#include <bits/stdc++.h>
using namespace std;
int main() {
  string st;
  string key = "keyence";
  cin >> st;
  int j = 0;
  for (int i = 1; i < key.size(); ++i) {
    string front, back;
    front = key.substr(0, i);
    back = key.substr(i + 1);
    if (st.find(front) != string::npos && st.find(back) != string::npos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
