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<stdlib.h>
#include<math.h>
#include<string.h>

int main(void){
	char a[100],b[100],ans[100];
	int i,l,n,t,s,f,m,d;
	char o[100],p;
	
	scanf("%d",&n);
	for(n=n;n>0;n--){		
		for(i=0;i<100;i++){
			a[i]=NULL;
			b[i]=NULL;
		}
		
		
		scanf("%s %s",a,b);
		if(strlen(a)>80 || strlen(b)>80){
			printf("overflow\n");
			continue;
		}
		//printf("a=%s\nb=%s\n\n",a,b);
		
		//oを空に
		for(l=0;l<100;l++)o[l]=NULL;
		
		//aとbの順序反転
		for(i=0;i<(int)strlen(a);i++){
			o[i]=a[strlen(a)-i-1];
		}
		
		strcpy(a,o);
		
		//printf("a=%s\nb=%s\n\n",a,b);
		
		//oを空に
		for(l=0;l<100;l++)o[l]=NULL;
		
		for(i=0;i<(int)strlen(b);i++){
			o[i]=b[strlen(b)-i-1];
		}
		
		strcpy(b,o);
		
		//oを空に
		for(l=0;l<100;l++)o[l]=NULL;
		
		
		//printf("a=%s\nb=%s\n\n",a,b);
		
		while(strlen(a)!=strlen(b)){
			if(strlen(a)<strlen(b))strcat(a,"0");
			else strcat(b,"0");
		}
		
		
		//printf("a=%s\nb=%s\n\n",a,b);
		
		//ansを空に
		for(l=0;l<100;l++)ans[l]=NULL;
		
		//printf("strlen\na=%d\nb=%d\n\n",(int)strlen(a),(int)strlen(b));
		m=n;
		for(i=0,f=0;i<(int)strlen(a);i++){
			s=(int)a[i]+(int)b[i]-96+f;
			//printf("n=%d\n",n);
		
			if(s>9){
				s=s-10;
				f=1;
				//printf("i=%d fff=%d\n",i,f);
			}
			else{
				f=0;
			}
			
			//printf("s=%d\n",s);
			
			sprintf(&p,"%d",s);
			strcat(ans,&p);
			
		}
		n=m;
		if(f==1){
			strcat(ans,"1");
		}
		//printf("a=%s\nb=%s\n\n",a,b);
		
		for(i=0;i<100;i++)o[i]=NULL;
		
		for(i=0;i<(int)strlen(ans);i++)o[i]=ans[strlen(ans)-i-1];
		strcpy(ans,o);
		
		if(strlen(ans)<=80)
		printf("%s\n",ans);
		else
		printf("overflow\n");
	}
	
	return 0;
}