<?php

$input = trim(fgets(STDIN));
$input = str_split($input);

$ans = ['k', 'e', 'y', 'e', 'n', 'c', 'e'];

$inputNum = 0;
$ansNum = 0;

$chance = FALSE;
$creepingUp = FALSE;

foreach($input as $val){
    if($ansNum < count($ans) && $input[$inputNum] == $ans[$ansNum]){
        if($chance){
            $creepingUp = TRUE;
        }
        $inputNum++;
        $ansNum++;
    }elseif($creepingUp){
        echo "NO";
        exit;
    }else{
        $chance = TRUE;
        $inputNum++;
    }
}

if ($ansNum != count($ans)) {
    echo "NO";
    exit;
}

echo "YES";
exit;