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