#include using namespace std; int main(void){ long long h = 0; long long w = 0; cin >> h >> w; if(h%4==0&&w%3==0){ cout << "YOKO\n"; }else{ cout << "TATE\n"; } return 0; }