You are given queries of the form:
a b
. This query asks for if , and if .
For each query, print out the desired answer!
Input Specification
The first line will contain the integer .
The next lines will each contain a query of the form defined above.
Output Specification
For each query, print the desired answer on its own line.
Sample Input
3
1 3
3 2
10 29
Sample Output
-2
-1
-19
Comments
Hello
This comment is hidden due to too much negative feedback. Show it anyway.