t = int(input()) equations = ["" for i in range(t)] for i in range(t): equations[i] = input() signals = set(('+', '*', '=')) for equation in equations: left, right = equation.split('=') left = eval(left) right = eval(right) if left == right: print("Yes") continue ...