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: Time Limit Exceeded)

#include <stdio.h>
#include <string.h>

void FuncReverseArray(char *, int);

int main(void)
{
	char num[3][100] = {{'\0'}};
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		int sum=0, career=0;
		int array_long, len_long, len_short;
		int flag = 0;
		int j, k;

		for (j = 0; j < 3; j++) {
			for (k = 0; k < sizeof(num[j]) / sizeof(char); k++) {
				num[j][k] = '\0';
			}
		}

		for (j = 0; j < 2; j++) {
			scanf("%s", num[j]);

			if (strlen(num[j]) > 80) flag = 1;
			FuncReverseArray(num[j], strlen(num[j]));
		}

		if (strlen(num[0]) > strlen(num[1])) {
			len_long = strlen(num[0]);
			len_short = strlen(num[1]);
			array_long = 0;
		} else {
			len_long = strlen(num[1]);
			len_short = strlen(num[0]);
			array_long = 1;
		}

		for (j = 0; j < len_long; j++) {
			if (j < len_short)
				sum = (num[0][j] - '0') + (num[1][j] - '0') + career;
			else
				sum = (num[array_long][j] - '0') + career;
			num[2][j] = (sum % 10) + '0';
			career = sum / 10;
		}
		if (career != 0) num[2][j] = career + '0';
		FuncReverseArray(num[2], strlen(num[2]));

		if (flag == 1 || strlen(num[2]) > 80) {
			puts("overflow");
		} else {
			printf("%s\n", num[2]);	
		}
	}

	return 0;
}

void FuncReverseArray(char *array, int n)
{
	int i;
	char temp;

	for (i = 0; i < (n/2); i++) {
		temp = array[i];
		array[i] = array[n-1-i];
		array[n-1-i] = temp;
	}
}