#include<bits/stdc++.h>
using namespace std;
string S, T="keyence", a, b;
int main(){
	cin >> S;
	for(int i = 0; i <= 7; i++){
		a = T.substr(0, i); 
		b = T.substr(i, 7-i);
		if(a == S.substr(0, i) && b == S.substr(S.size()-(7-i), 7-i)){
				cout << "YES"<< endl;
				return 0;
		}
	}
	cout << "NO" << endl;
}
