<?php

$sc = new Scanner();

$S = $sc->next();

$ans = explode(',', 'k,e,y,e,n,c,e');

if (strpos($S, 'keyence') !== false) {
    echo 'YES' . PHP_EOL;
    exit;
}

for($i = 0; $i < 7; $i++) {
    $s = array_slice($ans, 0, $i);
    $s2 = array_slice($ans, $i);
    $pos1 = strpos($S, implode('', $s));
    $pos2 = strpos($S, implode('', $s2));
    if ($pos1 === false || $pos2 === false) {
        continue;
    }
    $sub1 = substr($S, 0, $pos1);
    $sub2 = substr($S, $pos1 + count($s), $pos2 - ($pos1 + count($s)));
    $sub3 = substr($S, $pos2 + count($s2));
    if (   $sub1 === '' && $sub2 === '' && $sub3 !== ''
        || $sub1 !== '' && $sub2 === '' && $sub3 === ''
        || $sub1 === '' && $sub2 !== '' && $sub3 === '') {
        echo 'YES' . PHP_EOL;
        exit;
    }
}
echo 'NO' . PHP_EOL;


class Scanner {
    private $arr = [];
    private $count = 0;
    private $pointer = 0;
    public function next() {
        if($this->pointer >= $this->count) {
            $str = trim(fgets(STDIN));
            $this->arr = explode(' ', $str);
            $this->count = count($this->arr);
            $this->pointer = 0;
        }
        $result = $this->arr[$this->pointer];
        $this->pointer++;
        return $result;
    }
    public function hasNext() {
        return $this->pointer < $this->count;
    }
    public function nextInt() {
        return (int)$this->next();
    }
    public function nextDouble() {
        return (double)$this->next();
    }
}
