a,b=[int(i) for i in input().split()] if b//3*4==a: print("TATE") else: print("YOKO")