#P1489. I'llplayatrickonyou

I'llplayatrickonyou

Please look the picture carefully. Then I'll give you two integers and your task is output the third one.
Please never doubt the picture.

Input

The first line is a number T(1<=T<=30), represents the number of case. The next T blocks follow each indicates a case.
Each case contains two integers A,B (1<=B<=A<=10^100)

Output

For each case, output the number of case and the third integer.

Sample Input

3
99 72
45 27
39 18

Sample Output

27
18
21

HINT

Source