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>

int flag = 0;

void in_mal(int a_b[], char x[]);
void sum_i(int a[], int b[], int sum[]);

int main(void)
{
	char x[100];
	int i, j, k;
	int n, show = 0;
	int a[100] = {0}, b[100] = {0}, sum[100] = {0};
	
	scanf("%d", &n); 
	while (1){
		
		in_mal(a, x);
		in_mal(b, x);
		sum_i(a, b, sum);
		
		if(flag == 1)printf("overflow\n");
		for (i = 0; i < 16; i++){
			
			if (sum[i] != 0 && !show){
				printf("%d", sum[i]);
				show = 1;
			}
			else if (show == 1){
				printf("%05d", sum[i]);
			}
		}
		printf("\n");
		n--;
		printf("n = %d\n", n);
		for (i = 0; i < 16; i++){
			x[i] = 0;
			a[i] = 0;
			b[i] = 0;
			sum[i] = 0;
		}
		show = 0;
		if (n <= 0)break;
	}
	return (0);
}

void in_mal(int a_b[], char x[])
{
	int i;
	int j;
	
	scanf("%s", x);
	if (strlen(x) > 80){
		flag = 1;
		printf("ret in\n");
		return;
	}
	printf("strlen %d\n", strlen(x));
	for (i = 0; i < strlen(x); i++){
		j = 15;
		a_b[j] = a_b[j] * 10 + x[i] - '0';
		printf("a_b[%d] = %d\n", j, a_b[j]);
		for (j = 0; j < 16; j++){
			if (a_b[j] >= 100000){
				a_b[j - 1] += a_b[j] / 100000;
				a_b[j] %= 100000;
			}
		}
	}
	for (i = 0; i < 16; i++){
		printf("a_b[%d] = %d\n", i, a_b[i]);
	}
}

void sum_i(int a[], int b[], int sum[])
{
	int i, j;
	
	for (i = 15; i >= 0; i--){
		sum[i] += a[i] + b[i];
		for (j = 0; j < 16; j++){
			if (sum[j] >= 100000){
				sum[j - 1] += sum[j] / 100000;
				sum[j] %= 100000;
			}
		}
		if (sum[0] >= 100000){
			flag = 1;
		}
	}
	for (i = 0; i < 16; i++){
		printf("sum[%d] = %d\n", i, sum[i]);
	}
}