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

int main() {
	string S, F="keyence"; cin >> S;
	int a, b=0;
	for(a=0; a<7; ++a) if(S[a]!=F[a]) break;
	for(b=0; b<7; ++b) if(S[S.size()-1-b]!=F[6-b]) break;
	if(a+b<7) cout << "NO" << endl;
	else cout << "YES" << endl;
	return 0;
}
