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