ARGF.each { |line|
  s = line.chop

  keystr = "keyence"

  i = 0
  while keystr[i] == s[i]
    i += 1
  end
  j = 1
  while keystr[7-j] == s[s.size-j]
    j += 1
  end

  if i+j > 7
    puts "YES"
  else
    puts "NO"
  end
  exit
}