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;
using System.Collections.Generic;

public class my
{
	public static void Main()
	{
		var n = my.GetInt();

		for(int i = 0; i < n; i++ ) {
			var a = new BigInteger(Console.ReadLine());
			var b = new BigInteger(Console.ReadLine());

			a.Add(b);

			Console.WriteLine( a.IsOverflow? "overflow" : a.ToString() );
		}
	}

	private static int GetInt()
	{
		return int.Parse(Console.ReadLine());
	}

	public static string Reverse(string s)
	{
		var c = s.ToCharArray();
		Array.Reverse(c);

		return new String(c);
	}
}

public class BigInteger
{
	private long[] v = new long[8];
	public bool IsOverflow { get; private set; }
	private const long maxV = 10000000000;

	public BigInteger(string s)
	{
		if(s.Length > 80) {
			this.IsOverflow = true;
		} else {
			this.IsOverflow = false;

			var t = new String[8];

			if(s.Length <= 10) {
				t[0] = s;
			} else {
				var rs = my.Reverse(s);

				int i;
				for(i = 0; i < s.Length /10; i++) {
					t[i] = my.Reverse(rs.Substring(i*10,10));
				}
				if( s.Length %10 != 0) t[i] = my.Reverse(rs.Substring(i*10));	//hasuu ha no length
			}

			for(int i = 0; i < 8; i++) {
				if(t[i] != null)	this.v[i] = long.Parse(t[i]);
			}
		}
	}

	public override string ToString()
	{
		string ret = "";

		for(int i = 7; i >=1; i--) {
			ret += v[i].ToString("D10");
		}
		ret += v[0].ToString("D10");	// v[0] is special value

		return ret.TrimStart("0".ToCharArray());
	}

	public BigInteger Add(BigInteger b)
	{
		for (int i = 0; i < 8; i++) {
			this.v[i] += b.v[i];
		}

		this.IsOverflow |= this.CarryOver();

		return this;
	}

	private bool CarryOver()
	{
		for(int i = 0; i < 8 - 1; i++ ) {

			// Carry Over
			if(this.v[i] >= BigInteger.maxV) {
				this.v[i] -= BigInteger.maxV;
				this.v[i+1] += 1;
			}
		}

		return v[7] >= BigInteger.maxV;
	}
}