#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t-- > 0) {
    int n;
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    long long d = pow(3, n);
    int flag = 0;
    for (int i = 1; i < d; i++) {
      int tmp = i;
      int sum = 0;
      for (int j = 0; j < n; j++) {
        int s = tmp % 3;
        if (s == 1) {
          sum += arr[j];
        } else if (s == 2) {
          sum -= arr[j];
        }
        tmp /= 3;
      }
      if (sum == 0) {
        cout << "YES" << endl;
        flag = 1;
        break;
      }
    }
    if (flag == 1) {
      continue;
    }
    cout << "NO" << endl;
  }
}
