#include <iostream>
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;

	//cout << f << ":" << l << "--" << flush;
    
    int r = d.find(f);
    if (r != string::npos) {
    //	cout << "hitf" << endl;
    	d.erase(d.begin(), d.begin()+r);
    //	cout << d << endl;
    	k++;
	}
    r = d.find(l);
    if (r != string::npos) {
    //	cout << "hitl" << endl;
    	if (k == 1) {
    		cout << "YES" << endl;
    	}
    	k = 0;
    	}
    }
  }
    cout << "NO" << endl;
  return 0;
}
