#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;

void fun(double a,double b){
    double num = a+b;
    for(int i = 1;i < 80;i++){
        num /= 10;
    }
    if((int)num != 0) cout<<"overflow"<<endl;
    else printf("%.0lf\n",a+b);
}

int main(){
    int n;
    cin>>n;
    while(n--){
        double a,b;
        cin>>a>>b;
        fun(a,b);
    }
    return 0;
}

