console.log((args=>{
  let S = args.trim();
  const T = 'keyence', L = S.length;
  for ( let i = 0; i < L; i++ ) {
    const s = S.slice(0,i) + S.slice(i+L-7);
    if ( s === T ) return 'YES'
  }
  return 'NO';
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
