<?php

fscanf(STDIN, "%s", $s);
$word = "keyence";
$len = strlen($s);
if (substr($s, 0, 7) == $word) {
	echo "YES";
	exit;
}else if (substr($s, -7) == $word) {
	echo "YES";
	exit;
}
for ($i=1; $i < 7; $i++) { 
	$key  = substr($word, 0, $i);
	$ence = substr($word, $i-7);
	if (strpos($s, $key)!==FALSE && strpos($s, $key) == '0' && strpos($s, $ence, $i - 7) == $len + $i - 7) {
		echo "YES";
		exit;
	}
}

echo "NO";

