#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
while(t--){
int n;
cin >> n;
int a1[n], a2[n];
for(int i=0; i<n; i++){
cin >> a1[i];
a2[i] = (n+1) - a1[i];
}
for(int i=0; i<n; i++){
cout << a2[i] << " ";
}
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgdDsKCWNpbiA+PiB0OwoJd2hpbGUodC0tKXsKCQlpbnQgbjsgCgkJY2luID4+IG47CgkJaW50IGExW25dLCBhMltuXTsKCQlmb3IoaW50IGk9MDsgaTxuOyBpKyspewoJCQljaW4gPj4gYTFbaV07CgkJCWEyW2ldID0gKG4rMSkgLSBhMVtpXTsKCQl9CgkJZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKCQkJY291dCA8PCBhMltpXSA8PCAiICI7CgkJfQoJCWNvdXQgPDwgZW5kbDsKCX0KCXJldHVybiAwOwp9