#include <bits/stdc++.h>
using namespace std;
int main() {
  const string match = "keyence";
  string input;
  int k = 0;
  cin >> input;
  if (input == match) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i <= match.size(); i++) {
    const string f = match.substr(0, i);
    const string l = match.substr(i, match.size());
    string d = input;
    k = 0;
    int r = d.find(f);
    if (r != string::npos) {
      d.erase(d.begin(), d.begin() + r);
      k++;
    }
    r = d.find(l);
    if (r != string::npos) {
      if (k == 1) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
