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