You are given an equation of the addition of two numbers. One number among the two operands is missing in the given equation and is denoted by ‘x’. You have to find this missing number and return it.
For Example -
Consider the equation x + 10 = 15.
=> x = 15 - 10
=> x = 5
The output, in this case, is 5.
Input Format:
The first line of input contains an integer ‘T’ denoting the number of test cases.
The next ‘T’ lines represent the ‘T’ test cases.
The first and only line of each test case contains a string representing the equation. The given string does not contain any spaces.
Output Format:
For each test case, print the value of ‘x’ in a new line.
Note:
You do not need to print anything. It has already been taken care of. Just implement the given function.
Constraints:
1 <= T <= 10^4
-10^9 <= a,b,c <= 10^9
Where 'a' and 'b' are the numbers that are added together to obtain 'c'.
Time limit: 1 sec