<?php
fscanf(STDIN, '%s', $str);
$start = substr($str, 0, 3);
$end = substr($str, -4, 4);
if ($start.$end === 'keyence' || substr($str, 0, 7) === 'keyence' || substr($str, -7, 7) === 'keyence') {
    echo 'YES';
} else {
    echo 'NO';
}
echo "\n";