ARGF.each { |line|
  s = line.chop
  s_size = s.size
  
  keystr = "keyence"

  i = 0
  while (keystr[i] == s[i]) and (i<7)
    i += 1
  end
  j = 1
  while (keystr[7-j] == s[s_size-j]) and (j<=7)
    j += 1
  end

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