function main(input){
  var line = input[0];
  var keyence = 'keyence';
  var keyi = 0;
  var mark = 0;
  var markr = 0;
  if (line===keyence) {
    console.log('YES');
    return;
  }
  
  for(var i =0; i<line.length; i++) {
    if (line[i] === keyence[keyi] && keyi !== keyence.length) {
      keyi++;
    } else {
      mark = i;
      break;
    }
  }

  line = line.split('').reverse().join('');
  keyence = keyence.split('').reverse().join('');
  keyi=0;

  for(var i =0; i<line.length; i++) {
    if (line[i] === keyence[keyi] && keyi !== keyence.length) {
      keyi++;
    } else {
      markr = i;
      break;
    }
  }
  
  if ((mark + markr) >= keyence.length) {
    console.log('YES');
  } else {
    console.log('NO');
  }
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main(input);
});
