#include<bits/stdc++.h>
using namespace std;
#define maxn 120
char S[maxn];
int main(){
	cin >> S;
	const char *s = "keyence";
	int n = strlen(S);
	int i = 0;
	while(i < 7 && s[i] == S[i]) i += 1;
	int j = 0;
	while(j < 7 && s[6 - j] == S[n - j - 1]) j += 1;
	cout << (i + j >= 7 ? "YES" : "NO");
}