#include <iostream>
#include <cstring>

int w[20];
char buf[60];
bool dp[101];

int main() {
  int m, n, total, target;
  char* pch;

  scanf("%d\n", &m);
  while (m--) {
    total = n = 0;

    gets(buf);
    pch = strtok(buf, " ");
    while (pch != NULL) {
      total += w[n++] = atoi(pch);
      pch = strtok(NULL, " ");
    }

    if (total & 1)
      puts("NO");
    else {
      target = total >> 1;
      memset(dp, false, target + 1);
      dp[0] = true;
      for (int i = 0; i < n; i++)
        for (int j = target; j >= w[i]; j--)
          dp[j] |= dp[j-w[i]];

      if (dp[target])
        puts("YES");
      else
        puts("NO");
    }
  }

  return 0;
}
