#include <iostream>
using namespace std;
int main() {
double a, b, s ;
cin >> a >> b >> s ;
if (a > s || b > s) {
cout << "TAK";
}
else{
cout << "NIE";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgYSwgYiwgcyA7CgljaW4gPj4gYSA+PiBiID4+IHMgOwoJaWYgKGEgPiBzIHx8IGIgPiBzKSB7CgkJY291dCAgPDwgIlRBSyI7Cgl9CgllbHNleyAKCQljb3V0IDw8ICJOSUUiOwoJfQoJcmV0dXJuIDA7Cn0=