s = gets
if /^.*keyence$/.match(s) ||
   /^k.*eyence$/.match(s) ||
   /^ke.*yence$/.match(s) ||
   /^key.*ence$/.match(s) ||
   /^keye.*nce$/.match(s) ||
   /^keyen.*ce$/.match(s) ||
   /^keyenc.*e$/.match(s) ||
   /^keyence.*$/.match(s)
then
  puts 'YES'
else
  puts 'NO'
end

