line = gets.chomp

if line.match(/k.*eyence/) ||
    line.match(/ke.*yence/) ||
    line.match(/key.*ence/) ||
    line.match(/keye.*nce/) ||
    line.match(/keyen.*ce/) ||
    line.match(/keyenc.*e/) ||
    line.include?('keyence')
  puts 'YES'
else
  puts 'NO'
end

