n,m,l=map(int,input().split()) q=[0]*1001 q[l]=1 for c in list(map(int,input().split())): nq=[0]*1001 for i in range(1001): q[(i+c)//2]|=q[i] print(["No","Yes"][q[m]])