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

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

#define MAX(X,Y) ((X)>=(Y)?(X):(Y))

typedef struct {
	int  digits;
	char *value;
}BigInt;

BigInt* BigInt_Set(char *value) {
	BigInt *bigint;
	int     i,len;

	len=strlen(value);
	bigint=(BigInt*)malloc(sizeof(BigInt));
	bigint->digits=len;
	bigint->value=(char*)malloc(len);
	for(i=len-1;i>=0;i--) {
		bigint->value[len-i-1]=value[i]-'0';
	}
	return bigint;
}

BigInt* BigInt_Add(BigInt *x,BigInt *y) {
	BigInt *bigint;
	int     i,sum;

	bigint=(BigInt*)malloc(sizeof(BigInt));
	bigint->digits=MAX(x->digits,y->digits)+1;
	bigint->value=(char*)malloc(bigint->digits);
	memset(bigint->value,0,bigint->digits);
	for(i=0;i<x->digits;i++) {
		bigint->value[i]=x->value[i];
	}
	for(i=0;i<y->digits;i++) {
		sum=bigint->value[i]+y->value[i];
		bigint->value[i]=sum%10;
		bigint->value[i+1]+=sum/10;

	}
	for(i=bigint->digits-1;i>0;i--) {
		if(bigint->value[i]) break;
	}
	bigint->digits=i+1;
	return bigint;
}

char* BigInt_Str(BigInt *x) {
	char *str;
	int   i;

	str=(char*)malloc(x->digits+1);
	for(i=0;i<x->digits;i++) {
		str[x->digits-i-1]=x->value[i]+'0';
	}
	str[x->digits]='\0';
	return str;
}

int main(void) {
	BigInt *a,*b,*c,*t;
	char   s1[81],s2[81];
	int    i,n;

	scanf("%d",&n);
	for(i=0;i<n;i++) {
		scanf("%s",s1);
		scanf("%s",s2);
		a=BigInt_Set(s1);
		b=BigInt_Set(s2);
		if(a->digits>b->digits) {
			t=a;
			a=b;
			b=t;
		}
		c=BigInt_Add(a,b);
		if(c->digits>80) {
			printf("overflow\n");
		}else {
			printf("%s\n",BigInt_Str(c));
		}
		free(a);
		free(b);
		free(c);
	}
	return 0;
}