let inp = readLine()!.split(separator: " ").map { Int($0)! }
 
let n = inp[0]
let k = inp[1]
 
let a = readLine()!.split(separator: " ").map { Int($0)! }
for i in k+1...n {
  print(a[i-1] > a[i - 1 - k] ? "Yes" : "No")
}