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
29
30
31
32
#include <iostream>
#include<map>
using namespace std;
int main()
{
	char c;
	int i;
	i= getchar();
	i= getchar();
	i=0;
map<int,short int> tab;
   while (c != 10) 
   {
   	c = getchar();
   	tab[i]=c;
   	i++;
   }
   i=i-2;
   int k=0;
   while(i>k)
   {
   		if(tab[i]!=tab[k])
   		{
		    cout<<"NIE";
			return 0;
		}
   		k++;
   		i--;
   }
   cout<<"TAK";
   
}