
import Foundation

let input = readLine()!.components(separatedBy: " ").map{ Int($0)! }
let N = input[0]
let K = input[1]
var pointArray = readLine()!.components(separatedBy: " ").map{ Int($0)! }
let evaluationNum = N - K


var thisTerm = 1
var prevTerm = 1

for j in 0...evaluationNum {
    thisTerm = 1
    for i in j...K - 1 + j {
        thisTerm *= pointArray[i]
        }
    if j == 0 {
        prevTerm = thisTerm
    } else if prevTerm < thisTerm {
        print("Yes")
        prevTerm = thisTerm
    } else if prevTerm >= thisTerm {
        print("No")
        prevTerm = thisTerm
    }
}