#include using namespace std; int main(){ int a,b; cin >> a >> b; cout << (a/4-b/3==0?"TATE":"YOKO") << endl; return 0; }