#include <iostream>
using namespace std;
int main() {
long long n,m;
cin >> n >> m;
if(m >= 2000000000)
{
cout << "NIE";
return 0;
}
if(n >= ((m*(m+1))/2))
{
cout << "TAK";
return 0;
}
cout << "NIE";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGxvbmcgbixtOwoJY2luID4+IG4gPj4gbTsKCWlmKG0gPj0gMjAwMDAwMDAwMCkKCXsKCQljb3V0IDw8ICJOSUUiOwoJCXJldHVybiAwOwoJfQoJaWYobiA+PSAoKG0qKG0rMSkpLzIpKQoJewoJCWNvdXQgPDwgIlRBSyI7CgkJcmV0dXJuIDA7Cgl9Cgljb3V0IDw8ICJOSUUiOwoJcmV0dXJuIDA7Cn0=