#include<bits/stdc++.h>
using namespace std;
int a,T,n,tot;
int main()
{
ios::sync_with_stdio(0);cin.tie(0);
cin>>T;
for(int i=1;i<=T;i++){
cin>>n;
for(int j=1;j<=n;j++){
cin>>a;
if(a==0)tot++;
}
if(tot)cout<<"yes"<<endl;
else cout<<"no"<<endl;
}
return 0;
}