N,M,L=map(int,input().split()) Al=list(map(int,input().split())) dp=set([0,L]) for i in range(N): next_dp=set([]) for a in dp: next_dp.add(a) c=(a+Al[i])//2 if c<=M: next_dp.add(c) dp=next_dp dp.add(Al[i]) print("Yes" if M in dp else "No")