import sequtils,strutils var n,k : int (n, k) = stdin.readline.split.map(parseInt) var A = stdin.readline.split.map(parseInt) a = 0 for i in A: a = (a xor (i mod (k + 1))) if a == 0: echo "NO" else: echo "YES"