import std.stdio, std.conv, std.string, std.bigint;
import std.math, std.random, std.datetime;
import std.array, std.range, std.algorithm, std.container, std.format;
string read(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }

void main(){
	auto s = readln.chomp;
	
	auto x = "keyence";
	
	auto ans = "NO";
	for(int i = 0; i <= s.length; i ++){
		for(int j = i; j <= s.length; j ++){
			if(s[0 .. i] ~ s[j .. $] == x) ans = "YES";
		}
	}
	
	ans.writeln;
}
