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