#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

//template
#define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define ALL(v) (v).begin(),(v).end()
using ll=long long int;
const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps=1e-12;
template<typename T>inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<typename T>inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
//end

void solve(int _rot){
   // printf("Case #%d: ",_rot);
   int n; cin>>n;
   string s[3];
   rep(i,0,3)cin>>s[i];

   string res="0";
   rep(_,0,n)res+='1';
   rep(_,0,n)res+='0';
   cout<<res<<'\n';
}

int main(){
   int t; scanf("%d",&t);
   rep(rot,0,t)solve(rot+1);
   return 0;
}
#include <bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;

void solve() {
	int n,k; cin>>n>>k;
	int ans=0;
	for (int i=1; i<=n; i++) {
		ans+=i*k*100;
		ans+=k*(k+1)/2;
	}
	cout<<ans;
	return;
}
 
int main() {
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	solve();
	return 0;
}