#include<stdio.h>
#include<string>
#include<iostream>
using namespace std;
string z = "keyence";
int main()
{
	string s;
	cin >> s;
	int c1 = 0;
	for (int i = 0; i < 7; i++)
	{
		if (s[i] == z[i])c1++;
		else break;
	}
	for (int i = 0; i < 7; i++)
	{
		if (s[s.size() - i - 1] == z[6 - i])c1++;
		else break;
	}
	printf((c1 >= 7) ? "YES\n" : "NO\n");
}