console.log((args=>{
  let S = args.trim();
  const T = 'keyence';
  let m = 0, d = false;
  for ( let i = 0; i < S.length; i++ ) {
    if ( S[i] === T[m] ) {
      if ( d ) break;
      m++;
    } else {
      S = S.slice(0,i) + S.slice(i+1);
      i--;
      d=true;
    }
  }
  return (S===T)?'YES':'NO';
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
