import java.util.*

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    var (x,y)=scan.nextLine().split(" ").map{ it.trim().toLong() }.toTypedArray()
    var arr = scan.nextLine().split(" ").map{ it.trim().toLong() }.toTypedArray()
    var prev = 0.toLong()

    var sum = 0.toLong()
    for(i in 0..(y-1))
        prev+=arr[i.toInt()]

    for(i in y..arr.size-1)
    {
        var temp = prev - arr[i.toInt()-y.toInt()]
        temp+=arr[i.toInt()]

            if(temp>prev)
                println("Yes")
            else
                println("No")
        prev=temp
    }
}
