#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	string t="keyence";
	int i=0;
	while(s[i++]==t[0]&&!t.empty())t=t.substr(1);
	i=s.size()-1;
	while(s[i--]==t[t.size()-1]&&!t.empty())t=t.substr(0,t.size()-1);
	if(!t.size())
		cout<<"YES";
	else
		cout<<"NO";
}