function main(n){var e=n[0],o="keyence",s=0,i=0,t=0;if(e!==o){for(var r=0;r<e.length;r++){if(e[r]!==o[s]||s===o.length){i=r;break}s++}e=e.split("").reverse().join(""),o=o.split("").reverse().join(""),s=0;for(r=0;r<e.length;r++){if(e[r]!==o[s]||s===o.length){t=r;break}s++}i+t>=o.length?console.log("YES"):console.log("NO")}else console.log("YES")}var input="";process.stdin.resume(),process.stdin.setEncoding("utf8"),process.stdin.on("data",function(n){input+=n}),process.stdin.on("end",function(){main(input=input.split("\n"))});