let inp = readLine()!.split(separator: " ").map { Int($0)! }
 
let n = inp[0]
let k = inp[1]
 
let a = readLine()!.split(separator: " ").map { Int($0)! }
 
var prev = 1
for i in 0..<n {
  if i < k {
  	prev *= a[i]
    continue
  }
  var current = prev / a[i-k] * a[i]
  print(current > prev ? "Yes" : "No")
  prev = current
}