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