#include <bits/stdc++.h>
using namespace std;
int main() {
	string S,K;
	int i,l,e;
	cin >> S;
	l = S.size();	
	K = "keyence";
	flg = 0;
	i = 0;
	while(S.at(i) == K.at(i)) {
		i++;
		if(i == 7) break;
	}
	while(i < 7) {
		if(S.at(l - 7 + i) == K.at(i)) {
			i++;
		else {
			break;
		}
	}
	if(i == 7) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}
