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

int main(){


  string strx,stry;
  int N;

  cin >> N;
  while(N){
    cin >> strx ;
    cin >> stry;
    int x[20] = {0},y[20] = {0};
    int i=0,lenx = strx.size(), leny = stry.size();
    string tmp;
    
    for( i = 0; lenx > 5 ; i++){
      tmp = strx.substr(lenx - 5);
      x[i] = atoi(tmp.c_str());
      strx =  strx.substr(0,lenx - 5);
      lenx -= 5;
    }
    x[i] = atoi(strx.c_str());
    for( i = 0; leny > 5 ; i++){
      tmp = stry.substr(leny - 5);
      y[i] = atoi(tmp.c_str());
      stry =  stry.substr(0,leny - 5);
      leny -= 5;
    }
    y[i] = atoi(stry.c_str());
    
    
    int ans[20] = {0};
    for(i = 0 ; i < 20 ; i++){
      ans[i] += x[i] + y[i];
      if(ans[i] > 99999){
	ans[i+1] += 1;
	ans[i] -= 100000;
      }
    }
    if(ans[16] != 0)
      cout << "overflow"<< endl;
    else{
      for(i = 15; i >= 0 ; i--){
	if(ans[i] != 0)
	  break;
      }
      cout << ans[i];
      for(i = i-1; i >= 0 ; i--){
	if(ans[i] < 10) cout << "0";
	if(ans[i] < 100) cout << "0";
	if(ans[i] < 1000) cout << "0";
	if(ans[i] < 10000) cout << "0";
	cout << ans[i];
      }
      cout << endl;
    }
    N--;
  }
  return 0;
}