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