main=putStrLn.(\[a,b]->if a-b>0 then "TATE" else "YOKO").map read.words=<