#include
using namespace std;
bool subsetsum(int a[],int i,int n,int target,int sum){
//cout<<i<<" "<<sum<<endl;
if(i==n)
{
//cout<<sum;
if(sum==0)
return true;
return false;
}
return subsetsum(a,i+1,n,target,sum+a[i]) || subsetsum(a,i+1,n,target,sum);
}
int main() {
int t;
cin>>t;
while(t–){
int n;
cin>>n;
int a[n+1];
for(int i=0;i<n;i++){
cin>>a[i];
}
int sum=0;
int target=0;
if(subsetsum(a,0,n,target,sum)){
cout<<“Yes”<<endl;
}
else{
cout<<“No”<<endl;
}
}
return 0;
}