s = gets.chomp

if s == "keyence"
  puts "YES"
  exit
end

l = s.length
l.times do |i|
  (l-i).times do |j|
    x = s[i..(i + j)]
    p x
    if s.sub(x, "") == "keyence"
      puts "YES"
      exit
    end
  end
end
puts "NO"