xs = 'keyence'.split('')
ARGF.each { |l|
  ys = l.chomp.split('')
  ys.each { |e|
    if xs.first == e
      xs.shift
      if xs.length == 0
        puts 'YES'
        exit
      end
    end
  }
}
puts 'NO'
