#正しくない解法 n,k=map(int,input().split()) a=list(map(int,input().split())) if k in a: print('Yes') exit() e=set() for i in range(2**n): tmp=0 for j in range(n): if (i>>j)&1: tmp+=a[j] e.add(tmp) for i in e: if i+k in e: print('Yes') exit() print('No')