<?php
fscanf(STDIN, '%s', $str);
$chars = str_split($str);
$start = array_slice($chars, 0, 3);
$end = array_slice($chars, -4, 4);
if (substr($str, 0, 7) !== 'keyence' && substr($str, -7, 7) !== 'keyence' && (implode($start) !== 'key' || implode($end) !== 'ence')) {
    echo 'NO';
} else {
    echo 'YES';
}
echo "\n";