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