#define LL long long
#define Max 100005
#define Mod 1e9+7
const LL mod=1e9+7;
const LL inf=0x3f3f3f3f;
using namespace std;
int main()
{
	char a[101],b[101]={0};
	scanf("%s",a);
	for(int i=0;a[i];i++)
	{
		if(a[i]>='A' && a[i]<='Z')
			a[i]=a[i]-'A'+'a';
		b[i]=a[i];
	}
		int n=strlen(a);
		for(int i=0;i<n;i++)
			for(int j=i+1;j<n;j++)
		{
			strcpy(a,b);
			strcpy(a+i,a+j);
			if(strcmp(a,"keyence")==0)
			{
				printf("YES\n");
				return 0;
			}
		}
	printf("NO\n");
	return 0;
}