# import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') from collections import * from functools import * from itertools import * from heapq import * import sys,math input = sys.stdin.readline N,M,L = map(int,input().split()) A = list(map(int,input().split())) X = defaultdict(lambda:False) X[L]=True for i in range(N): a = A[i] Y = [] for k in X.keys(): tmp = (k+a)//2 Y.append(tmp) for y in Y: X[y]=True if X[M]: print('Yes') else: print('No')