Given two non-negative numbers X and Y. The task is calculate the sum of X and Y. If the number of digits in sum (X+Y) are equal to the number of digits in X, then print sum, else print X.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains two numbers X and Y.
For each test case, print the required answer.
1<=|Digits in X,Y|<=100
TestCase2: Since 100+1000=1100 which has 4 digits while 100(i.e X) has only 3 digits.Hence our answer will be 100 as per the prob statement.