#include <iostream>
#include <string>
using namespace std;
int main(void) {
	string s;
	cin >> s;
	bool ok = false;
	for (int i = 0; i < s.size(); ++i) {
		for (int j = i; j <= s.size(); ++j) {
			string a = s.substr(0, i) + s.substr(j);
			if (a == "keyence") ok = true;
		}
	}
	cout << (ok ? "YES" : "NO") << endl;
	return 0;
}