#include <bits/stdc++.h>
using namespace std;
bool fl;
int arr[69];
void rec(int lim, int idx, int sum) {
  if (sum == 0) {
    fl = true;
    return;
  }
  if (idx == lim) return;
  rec(lim, idx + 1, sum);
  if (fl) return;
  rec(lim, idx + 1, sum + arr[idx]);
  if (fl) return;
  rec(lim, idx + 1, sum - arr[idx]);
  if (fl) return;
}
void solve() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  fl = false;
  for (int i = 0; i < n; i++) {
    rec(i, 0, arr[i]);
    if (fl) break;
  }
  if (fl)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  int t = 1;
  cin >> t;
  for (int tc = 1; tc <= t; tc++) {
    solve();
  }
  return 0;
}
