<?php
fscanf(STDIN, "%s", $S);
$a = str_split($S);
$cnt = count($a);
$b = str_split("keyence");
$target = count($b);
$b[] = "";
$cursor = 0;
for ($i = 0; $i < $cnt; $i++) {
    if ($b[$cursor] === $a[$i]) {
        $cursor++;
    }
}
echo $cursor === $target ? "YES" : "NO";
