#include <bits/stdc++.h>
using namespace std;
int ar[105];
bool bad[1000005];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> ans;
    memset(bad, 0, sizeof bad);
    for (int i = 0; i < n; i++) cin >> ar[i];
    for (int i = 1; i < 1000006 && ans.size() < n; i++) {
      if (bad[i]) continue;
      for (int j = 0; j < n; j++) {
        for (int k = 0; k < n; k++) {
          bad[i + abs(ar[j] - ar[k])] = 1;
        }
      }
      ans.push_back(i);
    }
    cout << "YES" << endl;
    for (int i = 0; i < ans.size(); i++) cout << ans[i] << " ";
    cout << endl;
  }
  return 0;
}
