#include<bits/stdc++.h>
using namespace std;
int n;
string s,S,T;
int main()
{
	cin>>s;
	if (s=="keyence")
	{
		puts("YES");
		return 0;
	}
	n=s.length();
	for (int i=0; i<n; ++i)
		for (int j=i+1; j<n; ++j)
		{
			S=""; T="";
			for (int k=0; k<=i; ++k) S+=s[k];
			for (int k=j; k<n; ++k) T+=s[k];
			if (S+T=="keyence")
			{
				puts("YES");
				return 0;
			}
		}
	puts("NO");
}