#include<bits/stdc++.h>
#define N 100000
#define ll long long
#define rr register
usng namespace std;
inline int read(){
	int num=0,f=0;char ch=getchar();
	while(ch<'0'||ch>'9') f|=(ch=='-'),ch=getchar();
	while(ch>='0'&&ch<='9') num=num*10+ch-'0',ch=getchar();
	return f?-num:num; 
}
int zhan[][N];
int main(){
	int T=read();
	while(T--){
		int n=read(),m=read(),k=read();
		
	}
	return 0;
}