#include<bits/stdc++.h>

using namespace std;

bool recur(int a[],int sum,int i,int j)

{

if(sum==a[i])

return true;

else if(sum<a[i])

return false;

else if(i==j&&sum!=0)

return false;

else

return(recur(a,sum-a[i],i+1,j)||recur(a,sum,i+1,j));

}

int main()

{

int tc,z,x,k,count,l;

cin>>tc;

while(tc–)

{ count=0,l=1;

cin>>z>>x;

int b[z];

for(int j=1;j<=z;++j)

{

cin>>k;

if(k<=x)

{

b[l++]=k;

++count;

}

}

```
bool ans=recur(b,x,1,count);
if(ans)
cout<<"Yes\n";
else
cout<<"No\n";
}
return 0;
}
```