n,g,s=map(int,input().split()) a=list(map(int,input().split())) C=1000 q=[0]*(C+1) q[s]=1 for v in a: nq=[0]*(C+1) for i in range(C+1): if q[i]: nq[i]=1 nq[(i+v)//2]=1 q=nq print(["No","Yes"][q[g]])