line = gets.chomp

def check(line)
  if line.match(/k.+eyence/) ||
      line.match(/ke.+yence/) ||
      line.match(/key.+ence/) ||
      line.match(/keye.+nce/) ||
      line.match(/keyen.+ce/) ||
      line.match(/keyenc.+e/) ||
      line.match(/keyence.*/) ||
      line.match(/.*keyence/) ||
      line.include?('keyence')
    puts 'YES'
  else
    puts 'NO'
  end
end

original = line
line.size.times do |start|
  line.size.times do |s|
    n = line.split('').join('')

    n.slice!(start, s)
    if n.include?('keyence')
      puts "YES"
      exit 0
    end
  end
end
puts "NO"
