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";

	bool ans = false;
	ulong begin;
	ulong si;
	foreach (i, c; S)
	{
		if (c == S2[si])
		{
			++si;
			if (si == S2.length)
			{
				begin = i;
				break;
			}
		}
		else
		{
			begin = i - 1;
			break;
		}
	}
	ulong remain1 = S2.length - si;
	ulong remain2 = S.length - begin - remain1;

	if (S[0..begin+1] ~ S[begin+remain2..$] == S2) ans = true;
	stderr.writeln(S[0..begin+1], " ", S[begin+remain2..$]);
	
	writeln(ans ? "YES" : "NO");
	stdout.flush();
}