#include<bits/stdc++.h>
using namespace std;

int main() {
	string s,cut,ans = "keyence";
	bool ok = false;

	cin >> s;
	for (int i = 0; i < s.size(); i++) {
		if (ok)break;
		for (int j = 0; j <= s.size(); j++) {
			cut = s;
			cut.erase(i, j);
			if (cut == ans)ok = true;
		}
	}
	if (ok)cout << "YES"<< endl;
	else cout << "NO" << endl;
}