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 calcHugeNumber {
        static void Main(string[] args) {
            string size = Console.ReadLine();
            if (string.IsNullOrEmpty(size)) {
                return;
            }
            int size_Set = int.Parse(size);

            for (int iter = 0; iter < size_Set; iter++) {
                Bigint[] data = new Bigint[2];
                for (int i = 0; i < 2; i++) {
                    data[i] = new Bigint(Console.ReadLine());
                }
                if (data[0].num_digit == 0 || data[1].num_digit == 0) {
                    continue;
                }
                if (data[0].num_digit > 80 || data[1].num_digit > 80) {
                    Console.WriteLine("overflow");
                    continue;
                }
                if (data[0].digit.Length < data[1].digit.Length) {
                    Bigint tempo = data[0];
                    data[0] = data[1];
                    data[1] = tempo;
                }

                Bigint solution = calcNum.calcSum(data[0], data[1]);

                if (solution.num_digit > 80) {
                    Console.WriteLine("overflow");
                    continue;
                }
                string sum = solution.ToString();
                Console.WriteLine(sum);
            }
       }
    }
    public class Bigint{
        public int[] digit;
        public int num_digit;
        const int MAXLENGTH = 81;

        public Bigint(string data) {
            num_digit = data.Length;
            digit = new int[MAXLENGTH];
            for (int i = 0; i < MAXLENGTH; i++) {
                if (MAXLENGTH > num_digit && i >= num_digit) break;
                digit[i] = int.Parse(data.Substring(data.Length- i - 1,1));
			}
        }

        public void setNumDigit(int num){
            num_digit = num;
        }

        public override string ToString(){
            string solution = "";
            for (int i = num_digit-1; i >= 0; i--) {
                string subSolution = digit[i].ToString();
                solution += subSolution.Substring(subSolution.Length - 1, 1);
			}
            if (digit[num_digit-1] >= 10) {
                solution = "1" + solution;
            }
            return solution;
        }
    }
    public class calcNum {
        public static Bigint calcSum(Bigint a, Bigint b) {
            Bigint solution = new Bigint("");
            bool isCarry = false;
            int Maxlength = a.num_digit;

            for (int i = 0; i < Maxlength; i++) {
                solution.digit[i] = a.digit[i]+b.digit[i];

                if (isCarry == true) {
                    solution.digit[i]++;
                    isCarry = false;
                }

                if (solution.digit[i] >= 10) {
                    isCarry = true;
                    continue;
                }
            }
            if (solution.digit[a.num_digit-1] >= 10) {
                solution.digit[a.num_digit] = 1;
                solution.setNumDigit(a.num_digit+1);
            }else solution.setNumDigit(a.num_digit);
            return solution;
        }
    }
}