1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,a;

scanf("%d",&n);
string res[n];
for(int i=0;i^n;++i){
scanf("%d",&a);
for(int j=0;j^a;++j){
    int x,b,c;
    scanf("%d%d%d",&x,&b,&c);
    
}
if(rand()%2){
	res[i]="TAK";
}
else
res[i]="NIE";

}

for(int i=0;i^n;++i){
	
	cout<<res[i]<<endl;
}
return 0;
}