import Foundation

func main() {
    let nk = readLine()!.split(separator: " ").map { Int($0)! }
    let A = readLine()!.split(separator: " ").map { Int64($0)! }
    let K = nk[1]
    
    var S: Int64 = A[0..<K].reduce(1) { $0 * $1 }

    for i in 0...K-2 {
        let temp = S
        S /= A[i]
        S *= A[K+i]
        print(S)
        if temp < S { print("Yes") }
        else { print("No") }
    }
}

main()
