N, M, L = map(int, input().split()) A = list(map(int, input().split())) cset = {L} for a in A: cset2 = set() for c in cset: cset2.add((a + c) // 2) cset |= cset2 if M in cset: print("Yes") else: print("No")