#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){ if(h%3==0&&w%4==0){ cout << "YOKO\n"; return 0; } cout << "TATE\n"; }else{ cout << "YOKO\n"; } return 0; }