import Foundation

func main() {
    let split = readLine()!.components(separatedBy: " ").map{Int(String($0))!}
    let n = split[0]
    let k = split[1]
    let points = readLine()!.components(separatedBy: " ").map{Int(String($0))!}

    var beforePoint:Int64 = 1
  	for h in 1 ... k {
    	beforePoint = beforePoint * Int64(points[k-h])
    }
    var nowPoint:Int64 = 1
    for i in k ... n-1 {
        nowPoint = beforePoint * Int64(points[i])/Int64(points[i-k])
        if (nowPoint>beforePoint) {
            print("Yes") 
        } else {
            print("No")
        }
        beforePoint = nowPoint
    	nowPoint = 1
    }
}

main()