#include <iostream>
#include <vector>
using namespace std;
int main() {
int t;
cin >> t;
while (t--){
int n;
cin >> n;
vector<int>v;
for(int i=0; i<n; i++){
int k;
cin >> k;
v.push_back(k);
}
for(int u:v)cout << u << " ";
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgdDsKCWNpbiA+PiB0OwoJd2hpbGUgKHQtLSl7CgkJaW50IG47CgkJY2luID4+IG47CgkJdmVjdG9yPGludD52OwoJCWZvcihpbnQgaT0wOyBpPG47IGkrKyl7CgkJCWludCBrOwoJCQljaW4gPj4gazsKCQkJdi5wdXNoX2JhY2soayk7CgkJfQoJCWZvcihpbnQgdTp2KWNvdXQgPDwgdSA8PCAiICI7CgkJY291dCA8PCBlbmRsOwoJfQoJcmV0dXJuIDA7Cn0=