First line an integer T means the number of case.
Next will be T line.
Every line contains exact one line in the format of
NUMBER1 STRING NUMBER2;
If STRING is “MULTIPLY”,just output one line with the product of NUMBER1 and NUMBER2;
If STRING is “ADD”,just output the sum of NUMBER1 and NUMBER2 in one line.
The STRING will only be ”MULTIPLY” or “ADD”.
each line with the sum or product of NUMBER1 and NUMBER2 acrodding to STRING.