import Foundation

func main() {
    let nk = readLine()!.split(separator: " ").map { Int($0)! }
    let A = readLine()!.split(separator: " ").map { Double($0)! }
    let N = nk[0]
    let K = nk[1]
    
    for i in 0...N-K-1 {
        if A[K+i]/A[i] > 1 { print("Yes") }
        else { print("No") }
    }
}

main()
