H,W=map(int,input().split()) print("TATE" if (W/H)==(3/4) else "YOKO")