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