import std.stdio;
import std.algorithm;
import std.array;
import std.conv;
import std.datetime;
import std.numeric;
import std.math;
import std.string;

string my_readln() { return chomp(readln()); }

void main()
{
	//auto tokens = split(my_readln());
	string S = my_readln();
	string S2 = "keyence";

	ulong si;
	ulong last;
	bool used = false;
	foreach (i, c; S)
	{
		if (c == S2[si])
		{
			++si;
			if (si == S2.length) break;
		}
		else
		{
			if (!used) used = true;
			else if (i != last + 1)
			{
				break;
			}
			last = i;
		}
	}
	
	writeln(si == S2.length ? "YES" : "NO");
	stdout.flush();
}