
#define _USE_MATH_DEFINES
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <memory>
#include <string>

#include <algorithm>
#include <complex>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>

using namespace std;

#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#define __typeof__ decltype
#endif

#define ITER(c)         __typeof__((c).begin())
#define FOREACH(it, c)  for (ITER(c) it=(c).begin(); it != (c).end(); ++it)
#define RITER(c)        __typeof__((c).rbegin())
#define RFOREACH(it, c) for (RITER(c) it=(c).rbegin(); it != (c).rend(); ++it)
#define REP(i, n)       REPEAT(i, 0, n)
#define REPEAT(i, k, n) for (int i = (k); i < (n); ++i)
#define REVREP(i, n)    for (int i = ((n)-1); i >= 0; --i)
#define ESIZEOF(A)      (sizeof(A)/sizeof((A)[0]))
#define MIN(p1,p2)      (((p1)<(p2))?(p1):(p2))
#define MAX(p1,p2)      (((p1)>(p2))?(p1):(p2))
#define CIN_NO_SYNC     do { cin.tie(0); ios_base::sync_with_stdio(false); } while(0)

bool add(char *d, int n, string &s){
    int l = s.length();
    int j = 0;
    int carry = 0;
    while(carry || j < l){
        if(j >= n) return true;
        int dgt = (j < l) ? (s[l-j-1] - '0') : 0;
        d[j] = d[j] + dgt + carry;
        carry = d[j] / 10;
        d[j] %= 10;
        j++;
    }
    return false;
}
void print(const char *d, int n){
    bool pf = false;
    for(int i = n-1; i >= 0; i--){
        if(d[i] != 0 || pf || i == 0){
            pf = true;
            printf("%c", '0' + d[i]);
        }
    }
    printf("\n");
}

int main(void){
    CIN_NO_SYNC;
    int n;
    cin >> n;
    char d[80];

    REP(i,n){
        string s1, s2;
        cin >> s1 >> s2;
        //cout << s1 << ":" << s2 << endl;
        memset(d, 0, sizeof(d));
        if(add(d, sizeof(d), s1) || add(d, sizeof(d), s2)){
            printf("overflow\n");
        } else {
            print(d, sizeof(d));
        }
    }
    return 0;
}