Go: package main

import (
	"bufio"
	"fmt"
	"math/big"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() int {
	n, err := strconv.Atoi(nextString())
	if err != nil {
		fmt.Printf("strconv.Atoi failed: %v\n", err)
	}
	return n
}

func main() {
	scanner.Split(bufio.ScanWords)

	const maxCapacity = 512 * 1024
	buf := make([]byte, maxCapacity)
	scanner.Buffer(buf, maxCapacity)

	n := nextInt()
	maxint, _ := new(big.Int).SetString("100000000000000000000000000000000000000000000000000000000000000000000000000000000", 10)

	for i := 0; i < n; i++ {
		aStr := nextString()
		bStr := nextString()

		a, _ := new(big.Int).SetString(aStr, 10)
		b, _ := new(big.Int).SetString(bStr, 10)
		c := big.NewInt(0).Add(a, b)

		if c.Cmp(maxint) < 0 {
			fmt.Println(c)
		} else {
			fmt.Println("overflow")
		}
	}
}

Python: N = int(input())
for i in range(N):
    a = int(input())
    b = int(input())
    ans = a + b
    if len(str(ans)) > 80:
        print("overflow")
    else:
        print(ans)

Python: N = int(input())

list = []
for n in range(0, N):
    tmp = []
    for _ in range(0, 2):
        tmp.append(int(input()))
    list.append(tmp)

for a, b in list:
    c = a + b
    if c >= 10 ** 80:
        print('overflow')
    else:
        print(str(c))

Python: while True:
    n = int(input())
    for _ in range(n):
        a, b = int(input()), int(input())
        x = str(a+b)
        print('overflow' if len(x) > 80 else x)

Python: n = int(input())

for i in range(n):
    a = input()
    b = input()
    c = int(a) + int(b)
    if len(a) > 80 or len(b) > 80 or len(str(c)) > 80:
        print('overflow')
    else:
        print(c)

Python: n = int(input())
for i in range(n):
    a = int(input())
    b = int(input())
    if len(str(a + b)) > 80:
        print("overflow")
    else:
        print(a+b)

Python: n=int(input())
for i in range(n):
	a=int(input())
	b=int(input())
	c=a+b
	if a>=int(1e80) or b>=int(1e80) or c>=int(1e80):
		print("overflow")
	else:
		print(c)

Python: N=int(input())
a=[None]*N
b=[None]*N
for i in range(0,N):
  a[i]=int(input())
  b[i]=int(input())
for i in range(0,N):
  if len(str(a[i]))>80:
    print("overflow")
  elif len(str(b[i]))>80:
    print("overflow")
  elif len(str(a[i]+b[i]))>80:
    print("overflow")
  else:
    print(a[i]+b[i])

Python: n=int(input())
for n in range(n):
	a=int(input())
	b=int(input())
	c=a+b
	if c>=int(1e79):
		print("overflow")
	else:
		print(c)

Python: while(True):
    try:
        n = input()
        for i in range(n):
            a = input()
            b = input()
            c = str(a + b)
            if(len(c) >= 80):
                print("overflow")
            else:
                print(c)
    except Exception:
        break

Python: for i in range(int(input())):
  ans = int(input()) + int(input())
  print(ans if len(str(ans)) <= 80 else "overflow")

Python: n = int(input())

for i in range(0, n):
    a = int(input())
    b = int(input())
    if len(str(a + b)) > 80:
        print("overflow")
    elif len(str(a)) > 80:
        print("overflow")
    elif len(str(b)) > 80:
        print("overflow")
    else :
        print(a + b)

Python: # -*- coding: utf-8 -*-
N = int(input())

for _ in range(N):
    a = int(input())
    b = int(input())
    s = str(a + b)
    if len(s) <= 80:
        print(s)
    else:
        print('overflow')

Python: # ?????¶??????????±???????????????°??????
import sys

def main():
    n = int(sys.stdin.readline().strip())

    for _ in range(n):
        x = sys.stdin.readline().strip()
        y = sys.stdin.readline().strip()

        if len(x) > 80 or len(y) > 80:
            print('overflow')
        else:
            ans = int(x) + int(y)
            if len(str(ans)) > 80:
                print('overflow')
            else:
                print(ans)

if __name__ == '__main__':
    main()

Python: #!/usr/bin/env python
#-*- coding:utf-8 -*-

import sys
import math

def digit(x):
    d = 0
    while x >= 1:
        x /= 10
        d += 1

    return d

n = int(input())
anss = []

for _ in range(n):
    x = int(input())
    y = int(input())
    if int(digit(x)) > 80:
        print("overflow")
    elif int(digit(y)) > 80:
        print("overflow")
    elif int(digit(x+y)) > 80:
        print("overflow")
    else:
        anss.append(x+y)

for data in anss:
    print(data)

Python: # -*- coding:utf-8 -*-

def main():
    LIST=[]
    for i in range(int(input())):
        a=int(input())
        b=int(input())
        LIST.append(a+b)

        if len(LIST)>80:
            print("overflow")
            break

    for v in LIST:
        print(str(v))
            
    
if __name__ == '__main__':
    main()

Python: while(True):
    try:
        n = input()
        for i in range(n):
            a = input()
            b = input()
            c = str(a + b)
            if(len(c) > 80):
                print("overflow")
            else:
                print(c)
    except Exception:
        break

Python: def main():
    n = int(input())

    for i in range(n):
        result = str(int(input()) + int(input()))

        if len(result) > 80:
            print("overflow")
        else:
            print(result)

if __name__ == '__main__':
    main()

Python: from sys import stdin
n = int(stdin.readline())
for i in range(n):
    c = str(int(stdin.readline().strip()) + int(stdin.readline().strip()))
    if (len(c) > 80):
        print("overflow")
    else:
        print(c)

Python: n=int(input())
for i in range(n):
	a=int(input())
	b=int(input())
	if len(str(a+b))>80:print("overflow")
	else:print(a+b)

Python: import math
for i in range(int(input())):
    a = int(input())
    b = int(input())
    if int(math.log10(a+b) + 1) > 80:
        print("overflow")
    else:
        print(a+b)

Python: n=int(input())
for _ in range(n):
	s=int(input())+int(input())
	print('overflow' if s/1e80>1 else s)

Python: n=int(input())
ans_list=[]

for i in range(n):
	a=int(input())
	b=int(input())
	ans_list.append(a+b)

for i in ans_list:
	print(i)

Python: while 1:
    try:
        n = int(input())
    except:break

    n1 = 0
    n2 = 0
    for i in range(n):
        n1 = int(input())
        n2 = int(input())
        isOver = False
        ans = n1 + n2
        if len(str(ans)) >= 81 | len(str(n1)) | len(str(n1)) :
            isOver = True
        if isOver:
            print("overflow")
        else:
            print(ans)

Python: n = int(input())
 
for i in range(n):
    a = int(input())
    b = int(input())
 
    if (a + b) < (10 ** 80):
        print(a + b)
    else:
        print("overflow")

Python: n = int(input())

for i in range(n):
    x = input()
    y = input()
    ans = int(x) + int(y)
    if len(x) > 80 or len(y) > 80 or len(str(ans)) > 80:
        print("overflow")
    else:
        print(ans)

Python: from math import log10
n = int(input())
for i in range(n):
    a = int(input())
    b = int(input())
    c = a+b
    if (log10(c) > 80):
        print("overflow")
    else:
        print(c)

Python: import math

c  = input();

for var in range(0, int(c)) :
	n1 = input();
	n2 = input();
	sum = int(n1) + int(n2);

	if int(math.log10(sum)) + 1 > 80 :
		print("overflow");
	else :
		print(sum);

Python: times=int(input())
for i in range(times):
    a=int(input())
    b=int(input())
    if len(str(a))<=80 and len(str(b))<=80 and len(str(a+b))<=80:
        print(a+b)
    else: print("overflow")

Python: n = int(raw_input())
for _ in [0]*n:
  a = int(raw_input())
  b = int(raw_input())
  c = a+b
  print [c,"overflow"][len(str(c))>80]

Python: for i in range(int(input())):
    a = sum([int(j) for j in input().split()])
    if a > 2147483647:
        print("overflow")
    else:
        print(a)

Python: import sys

n = int(input())
for _ in range(n):
    a = sys.stdin.readline()
    b = sys.stdin.readline()
    c = int(a) + int(b)
    if len(str(c)) > 80:
        print("overflow")
    else:
        print(c)