#include <iostream>
#include <string>
using namespace std;
int main()
{
	string a;
	cin >> a;
	int s = a.size();
	int ans = 0;
	for (int i = 0; i < 8; i++) {
		if (a.substr(0, i)+a.substr(s-(7-i),7-i)=="keyence")ans=1;
	}
	if (ans == 1)cout <<"YES"<<endl;
	else cout << "NO" << endl;
}
