Problem:
National Budget

A country has a budget of more than 81 trillion yen. We want to process such data, but conventional integer type which uses signed 32 bit can represent up to 2,147,483,647.

Your task is to write a program which reads two integers (more than or equal to zero), and prints a sum of these integers.

If given integers or the sum have more than 80 digits, print "overflow".

Input

Input consists of several datasets. In the first line, the number of datasets N (1 ≤ N ≤ 50) is given. Each dataset consists of 2 lines:

The first integer
The second integer

The integer has at most 100 digits.

Output

For each dataset, print the sum of given integers in a line.

Sample Input

6
1000
800
9999999999999999999999999999999999999999
1
99999999999999999999999999999999999999999999999999999999999999999999999999999999
1
99999999999999999999999999999999999999999999999999999999999999999999999999999999
0
100000000000000000000000000000000000000000000000000000000000000000000000000000000
1
100000000000000000000000000000000000000000000000000000000000000000000000000000000
100000000000000000000000000000000000000000000000000000000000000000000000000000000

Output for the Sample Input

1800
10000000000000000000000000000000000000000
overflow
99999999999999999999999999999999999999999999999999999999999999999999999999999999
overflow
overflow

Solution in C# (judge verdict: Wrong Answer)

using System;

namespace AIZUJudge {
    class Factorial {
        static void Main(string[] args) {
            string tmp = Console.ReadLine();
            if (string.IsNullOrEmpty(tmp)) {
                return;
            }
            int numLoop = int.Parse(tmp);
            for (int iter = 0; iter < numLoop; iter++) {
                string[] data = new string[2];
                for (int i = 0; i < 2; i++) {
                    data[i] = Console.ReadLine();
                }
                if (string.IsNullOrEmpty(data[0]) || string.IsNullOrEmpty(data[1])) {
                    return;
                }
                if (data[0].Length > 80 || data[1].Length > 80) {
                    Console.WriteLine("Overflow");
                    return;
                }

                string[] exstr1;
                string[] exstr2;
                if (data[0].Length <= 8) {
                    exstr1 = new string[1];
                    exstr1[0] = data[0];
                } else if (data[0].Length > 8 && data[0].Length%8 == 0) {
                    exstr1 = new string[(data[0].Length / 8)];
                }else exstr1 = new string[(data[0].Length / 8) + 1];

                if (data[1].Length < 8) {
                    exstr2 = new string[1];
                    exstr2[0] = data[1];
                } else if (data[1].Length > 8 && data[1].Length % 8 == 0) {
                    exstr2 = new string[(data[1].Length / 8)];
                } else exstr2 = new string[(data[1].Length / 8) + 1];

                if (data[0].Length<data[1].Length) {
                    var tmpo = data[0];
                    data[0] = data[1];
                    data[1] = tmpo;
                }
                int idx = data[0].Length;
                int box = exstr1.Length-1;
                const int edge = 8;

                while (idx - edge >= 0) {
                    exstr1[box] = data[0].Substring(idx - edge, edge);
                    idx -= edge;
                    box--;
                } 
                if (data[0].Length % 8 != 0) {
                    exstr1[0] = data[0].Substring(0, idx);
                }
                

                idx = data[1].Length;
                box = exstr2.Length-1;
                while (idx - edge >= 0) {
                    exstr2[box] = data[1].Substring(idx - edge, edge);
                    idx -= edge;
                    box--;
                }
                if (data[1].Length % 8 != 0) {
                    exstr2[0] = data[1].Substring(0, idx);
                }

                bool[] isNeedMoveUp = new bool[exstr1.Length];
                int[] piece_Result = new int[exstr1.Length];
                for (int i = exstr1.Length - 1; i >= 0; i--) {
                    if (i - (exstr1.Length - exstr2.Length) < 0) {
                        piece_Result[i] = int.Parse(exstr1[i]);
                        continue;
                    } else piece_Result[i] = int.Parse(exstr1[i]) + int.Parse(exstr2[i-(exstr1.Length-exstr2.Length)]);

                    if (i < exstr1.Length-1) {//??????????????§?????°???????????????????????°+1
                        if (isNeedMoveUp[i + 1]) {
                            piece_Result[i] += 1;
                        }
                    }

                    if (piece_Result[i] >= Math.Pow(10,8)) {
                        isNeedMoveUp[i] = true;
                    }
                }
                if (piece_Result.Length == 10 && piece_Result[0].ToString().Length >= 8) {
                    Console.WriteLine("Overflow");
                    return;
                }

                
                System.Text.StringBuilder data_Solution = new System.Text.StringBuilder();
                if (isNeedMoveUp[0]) {
                    data_Solution.Append("1");
                }
                for (int i = 0; i < piece_Result.Length; i++) {
                    if (piece_Result[i] >= Math.Pow(10, 8)) {
                        data_Solution.Append(piece_Result[i].ToString().Substring(1,8));
                    } else data_Solution.Append(piece_Result[i].ToString());
                }
                string solution = data_Solution.ToString();
                Console.WriteLine(solution);
            }
       }
    }
}