#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	cout<<(regex_match(s,regex(".*keyence|k.*eyence|ke.*yence|key.*ence|keye.*nce|keyen.*ce|keyenc.*e|keyence.*"))?"YES":"NO")<<endl;
}
