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