#include <bits/stdc++.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wc++11-extensions"
#pragma GCC diagnostic ignored "-Wunused-const-variable"
using namespace std;
int max(int a, int b) { return (a > b) ? a : b; }
int min(int a, int b) { return (a < b) ? a : b; }
double max(double a, double b) { return (a > b) ? a : b; }
double min(double a, double b) { return (a < b) ? a : b; }
void ain(vector<int>& a) {
  for (int i = 0; i < a.size(); i++) cin >> a[i];
}
int Ceil(double d) { return ((int)d == d) ? d : d + 1; }
int gcd(int a, int b) { return (a == 0) ? b : gcd(b % a, a); }
int n;
vector<int> a;
void f(int ind, int sum, vector<int>& v, set<int>& all) {
  all.insert(sum);
  if (ind == v.size()) return;
  f(ind + 1, sum + v[ind], v, all);
  f(ind + 1, sum - v[ind], v, all);
  f(ind + 1, sum, v, all);
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int _;
  cin >> _;
  while (_--) {
    cin >> n;
    a.assign(n, 0);
    ain(a);
    bool done = 0;
    for (int i = 0; i < n; i++) {
      vector<int> v;
      for (int j = 0; j < n; j++)
        if (i != j) v.push_back(a[j]);
      set<int> sub;
      f(0, 0, v, sub);
      if (sub.find(a[i]) != sub.end()) {
        done = 1;
        cout << "YES\n";
        break;
      }
    }
    if (!done) cout << "NO\n";
  }
  return 0;
}
#pragma GCC diagnostic pop
