xs = 'keyence'.split('')
c = 0
ARGF.each { |l|
  if l =~ /^keyence$/ or l =~ /^k.*eyence$/ or l =~ /^ke.*yence$/ or l =~ /^key.*ence$/ or l =~ /^keye.*nce$/ or l =~ /^keyen.*ce$/ or l =~ /^keyenc.*e$/ or l =~ /^keyence.*$/
    puts 'YES'
    exit
  end
}
puts 'NO'
