Time Limit: 1000 MS    Memory Limit: 65536 K 


Description

Now, give you two integer a and b, which indicate the weight of dahema1 and dahema2, you can assume that a,b and a+b are all in the range of int type(how jimpness she is!), now reverse a to a' and b to b',then tell me a'+b'. For example, after reverse, 3001 become to 1003.

Input

The first line of the input will be a integer to represent the number of test cases. For each case,there are two integers a and b. ( a,b and a+b are all in the range of int type, [-2^31,2^31-1] ) There is a blank line before each test case.

Output

For each test case: output the result.

Sample Input

4 101 101 2 3 123 123 123 321

Sample Output

202 5 642 444

Source

MetalHeart