#include <bits/stdc++.h>
using namespace std;
vector<bool> bad(2000002, 1);
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < a.size(); ++i) cin >> a[i];
    sort(a.begin(), a.end());
    for (int i = 1; i < a.size(); ++i) a[i] -= a[0];
    a[0] = 0;
    cout << "YES\n";
    fill(bad.begin(), bad.end(), 1);
    int printed_q = 0;
    for (int i = 1; i <= 1000000 and printed_q < a.size(); ++i) {
      if (bad[i] == 1) {
        cout << i << ' ';
        printed_q++;
        for (int j = 0; j < a.size(); ++j)
          for (int k = 0; k < j; ++k) bad[i + a[j] - a[k]] = 0;
      }
    }
    cout << "\n";
  }
}
