#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;

signed main() {
	string a; cin >> a;
	for (int i = 0; i < a.length(); i++) {
		for (int j = i; j < a.length(); j++) {
			if (a.substr(0, i) + a.substr(j, a.length()) == "keyence") {
				puts("YES");
				return 0;
			}
		}
	}
	puts("NO");
}