#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long all = pow(3, n);
  long long ok = 0;
  for (long long t = 1; t < all; t++) {
    long long now = t;
    long long sum = 0;
    for (long long i = 0; i < n; i++) {
      long long x = now % 3;
      if (x == 2) sum += a[i];
      if (x == 1) sum -= a[i];
      now /= 3;
    }
    if (sum == 0) {
      cout << "YES" << '\n';
      return;
    }
  }
  cout << "NO" << '\n';
  return;
}
signed main() {
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
}
