#include<iostream>
#include<fstream>
#include<cstdio>
#include<algorithm>
#include<cmath>
using namespace std;
const int N = 1e5 + 10;
int C , T , n , k , u , v , e[N];
int main()
{
	freopen("traverse.in" , "r" , stdin);
	freopen("traverse.out" , "w" , stdout);
	cin >> T;
	for(int i = 1 ; i <= T ; i ++)
	{
		cin >> n >> k;
		for(int j = 1 ; j < n ; j ++)
		{
			cin << u << v;
		}
		for(int j = 1 ; j <= k ; j ++)
		{
			cin >> e[j];
		}
		cout << rand() << endl;
	}
	return 0;
}

