#include <bits/stdc++.h>
using namespace std;
int main() {
  string input_s;
  cin >> input_s;
  const string keyence = "keyence";
  for (int len = 0; len < keyence.length(); len++) {
    for (int i = 0; i < input_s.length() - keyence.length(); i++) {
      for (int j = i + len; j < input_s.length() - (keyence.length() - len - 1);
           j++) {
        string tempStr =
            input_s.substr(i, len) + input_s.substr(j, keyence.length() - len);
        if (tempStr == keyence) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
