#include <iostream>
using namespace std;
int main (){
int t;
cin >> t;
while(t--){
int n;
cin >> n;
int arr[n];
int arr2[n];
for(int i=0; i<n; i++){
cin >> arr[i];
arr2[i] = n+1 - arr[i];
cout << arr2[i];
}
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbiAoKXsKCWludCB0OwoJY2luID4+IHQ7Cgl3aGlsZSh0LS0pewoJCWludCBuOwoJCWNpbiA+PiBuOwoJCWludCBhcnJbbl07CgkJaW50IGFycjJbbl07CgkJZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKCQkJY2luID4+IGFycltpXTsKCQkJYXJyMltpXSA9IG4rMSAtIGFycltpXTsKCQkJY291dCA8PCBhcnIyW2ldOwoJCX0KCQljb3V0IDw8IGVuZGw7Cgl9CglyZXR1cm4gMDsKfQo=