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 cur = 1
for i in 0..<k {
  cur *= a[i]
}

for i in k..<n {
  if cur < cur * a[i] / a[i-k] {
    print("Yes")
  } else {
    print("No")
  }
  cur = cur * a[i] / a[i-k]
}