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