1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <ctime>

int main()
{
	std::ios::sync_with_stdio(false);
	srand(time(NULL));
	int x = rand() % 2;
	int n, m;

	std::cin >> n >> m;
	while(n--)
	{
		std::cin >> m >> m >> m;
	}


	std::cout << (x == 0 ? "NIE" : "TAK") << std::endl;
	return 0;
}