#include<bits/stdc++.h>
using namespace std;
int main(){
int t,n,p;
cin>>t;
int c[t];
for(int i = 1;i <= t;i++)
{
cin>>n;
c[i] = 0;
for(int j = 1;j <= n;j++)
{
cin>>p;
if(p == 0)
{
c[i] = 1;
}
}
}
for(int i = 1;i <= t;i++)
{
if(c[i] == 1)
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
}
return 0;
}