#include using namespace std; int main(void) { int h, w; cin >> h >> w; cout << (h > w ? "TATE" : "YOKO") << endl; return 0; }