s = gets.chomp.split('')
n = s.length
temp = s.clone

0.upto (n - 1) do |i|
  0.upto (n - 1) do |j|
    s.slice!(i, j)
    if s.join('') == 'keyence'
      puts 'YES'
      exit
    end
    s = temp.clone
  end
end

puts 'NO'
