<?php /*atcoder.php*/

$at = new Atcoder();
$at->main();
unset($at);

class Atcoder{
	private function lineIn(){
		$buf = fgets(STDIN);
		return $this->killNewLine($buf);
	}
	private function killNewLine($buf = null){
		$buf = str_replace("\r\n", "", $buf);
		$buf = str_replace("\n", "", $buf);
		$buf = str_replace("\r", "", $buf);
		return $buf;
	}

	public function main(){
		$s = $this->lineIn();
		
		$hw = array("keyence", 
			"keyenc", 
			"keyen", 
			"keye", 
			"key", 
			"ke", 
			"k");
		$fw = array("eyence", 
			"yence", 
			"ence", 
			"nce", 
			"ce", 
			"e");

		foreach($hw as $word){
			$hbuf = strpos($s, $word);
			if(false !== $hbuf){
				if("keyence" == $word){
					echo "YES\n";
					return true;
				}else{
					$buf = $word;
					break 1;
				}
			}
		}
		unset($word);

		foreach($fw as $word){
			$fbuf = strrpos($s, $word);
			if(false !== $fbuf){
				$buf .= $word;
				break 1;
			}
		}
		unset($word);

		if("keyence" == $buf){
			echo "YES\n";
		}else{
			echo "NO\n";
		}
	}
}
?>