function Main(input) {
	input = input.trim();
  var t1 = new RegExp(/^keyence$/).exec(input);
  var t2 = new RegExp(/^keyence/).exec(input);
  var t3 = new RegExp(/keyence$/).exec(input);
  var t4 = new RegExp(/^k.*eyence$/).exec(input);
  var t5 = new RegExp(/^ke.*yence$/).exec(input);
  var t6 = new RegExp(/^key.*ence$/).exec(input);
  var t7 = new RegExp(/^keye.*nce$/).exec(input);
  var t8 = new RegExp(/^keyen.*ce$/).exec(input);
  var t9 = new RegExp(/^keyenc.*e$/).exec(input);
  if(!t1 && !t2 && !t3 && !t4 && !t5 && !t6 && !t7 && !t8 && !t9){
     console.log("NO");
     }else{
     console.log("YES");
     }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
