#pragma GCC optimize("Ofast") #include using namespace std; typedef long long int ll; typedef unsigned long long ull; mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); ll myRand(ll B) { return (ull)rng() % B; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,K; cin >> n >> K; vector a(n); for(int i=0;i> a[i]; } vector sum(1<0;j=(j-1)&i){ if(j==i)continue; int bit1=j,bit2=(i^j); if(K==sum[bit1]-sum[bit2])ok=true; } } if(ok)printf("Yes\n"); else printf("No\n"); }