#include<bits/stdc++.h> using namespace std; int main() { int t,n; string s; cin>>t; for(;t>0;t--){ cin>>n; cin>>s; cout<<s<<endl; } return 0; }