Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Scan()
	dataset, _ := strconv.Atoi(sc.Text())
	var firstdata *big.Int

	for i := 0; i < dataset*2; i++ {
		n := new(big.Int)
		sc.Scan()
		data, _ := n.SetString(sc.Text(), 10)

		if i%2 == 0 {
			firstdata = data
			continue
		}

		result := new(big.Int)
		if result := result.Add(data, firstdata); len(result.String()) > 80 {
			fmt.Println("overflow")
			continue
		} else {
			fmt.Println(result)
		}
	}
}

Python: N = int(input())
import re
for _ in [0]*N:
    a = input().zfill(100)
    b = input().zfill(100)
    result = []
    prev = 0
    for i in range(1, 81):
        n = int(a[-i]) + int(b[-i]) + prev
        result.append(n%10)
        prev = n // 10
    if prev > 0 or int(a[:-80]) + int(b[:-80]) > 0:
        print("overflow")
    else:
        result = "".join(map(str, result[::-1]))
        print(int(result))

Python: import math
n=int(input())
s=[int(input()) for _ in range(n*2)]
for i in range(n):
  a=s[i*2]+s[i*2+1]
  st=str(a)
  if len(st)>80:
    print("overflow")
  else:
    print(a)

Python: # -*- coding:utf-8 -*-
N = int(input())
data1 = []
data2 = []
for i in range(N):
    data1.append(int(input()))
    data2.append(int(input()))

for i in range(N):
    if data1[i] > 10**80-1 or data2[i] > 10**80-1 or data1[i]+data2[i] > 10**80-1:
        print('overflow')
    else:
        print(data1[i]+data2[i])

Python: N = int(input())
A = []
B = []
for i in range(N):
    a = int(input())
    b = int(input())
    A.append(a)
    B.append(b)

for i in range(N):
    if A[i] >= 10 ** 80 or B[i] >= 10 ** 80:
        print("overflow")
    elif A[i] + B[i] >= 10 ** 80:
        print("overflow")
    else:
        print(str(A[i] + B[i]))

Python: # coding:utf-8
for i in range(int(input())):
	a,b =int(input()),int(input())
	if a>=pow(10,80) or b>=pow(10,80):
		print("overflow")
	else:
		big = a+b
		if big >= pow(10,80):
			print("overflow")
		else:
			print(big);

Python: n = int(input())
for _ in range(n):
    a = input()
    b = input()
    m = max(len(a), len(b))
    if m > 80:
        print("overflow")
    a = list(reversed(a))
    b = list(reversed(b))
    t = 0
    ans = []
    for i in range(m):
        try:
            num_a = int(a[i])
        except:
            num_a = 0
        try:
            num_b = int(b[i])
        except:
            num_b = 0
        s = num_a + num_b + t
        if s >= 10:
            t = 1
            s -= 10
            ans.insert(0, s)
        else:
            ans.insert(0, s)
            t = 0
    if t == 1:
        ans.insert(0, 1)
    if len(ans) > 80:
        print("overflow")
    else:
        print(*ans, sep="")

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

Python: import sys
N=int(input())
for i in range(N):
    a=input()
    b=input()
    len_a=len(a)
    len_b=len(b)
    c=[]
    kuriage=0
    if(len_a>=len_b):
        for i in range(len_b):
            c.append((kuriage+int(a[len_a-1-i])+int(b[len_b-1-i]))%10)
            kuriage=(kuriage+int(a[len_a-1-i])+int(b[len_b-1-i]))//10
        for i in range(len_b,len_a):
            c.append((kuriage+int(a[len_a-1-i]))%10)
            kuriage=(kuriage+int(a[len_a-1-i]))//10



    else :
        for i in range(len_a):
            c.append((kuriage+int(a[len_a-1-i])+int(b[len_b-1-i]))%10)
            kuriage=(kuriage+int(a[len_a-1-i])+int(b[len_b-1-i]))//10
        for i in range(len_a,len_b):
            c.append((kuriage+int(b[len_b-1-i]))%10)
            kuriage=(kuriage+int(b[len_b-1-i]))//10

    if(kuriage==1):
        c.append(1)

    if(len(c)>=80):
        print('overflow')

    else:
        for i in c[::-1]:
            print(i,end='')
        print('')

Python: a = int(input())
for i in range(a):
    x = int(input())
    y = int(input())
    if x + y >= 10 ** 80:
        print("overflow")
    else:
        print(x + y)

Python: import math

n = int(input())
for i in range(n):
    x = int(input())
    y = int(input())
    result = x + y
    if math.log10(result) + 1 < 81:
        print(result)
    else:
        print("overflow")

Python: from __future__ import (absolute_import, division, print_function,
                        unicode_literals)
from sys import stdin

n = int(stdin.readline())
while n:
    result = long(stdin.readline()) + long(stdin.readline())
    if len(str(result)) >= 81:
        print('overflow')
    else:
        print(result)
    n -= 1

Python: LIMIT = 10 ** 80
n = int(input())
for i in range(n):
    a = int(input())
    b = int(input())
    c = a + b
    if a >= LIMIT or b >= LIMIT or c >= LIMIT:
        print('overflow')
    else:
        print(c)

Python: n=int(input())
for _ in range(n):
	s=int(input())+int(input())
	print('overflow' if len(str(s))>80 else s)

Python: for i in range(int(input())):
    n1 = list(input())
    n2 = list(input())
    if len(n2) > len(n1):
        n1, n2 = n2, n1

    ans = []
    for i in range(len(n1)):
        a = int(ans.pop(0)) if len(ans) == i + 1 else 0
        c1 = int(n1.pop(-1))
        c2 = int(n2.pop(-1)) if len(n2) != 0 else 0
        ans = list(str(a + c1 + c2)) + ans
    print(''.join(ans))

Python: n = int(input())
for _ in range(n):
    a = sum([int(input()) for _ in range(2)])
    if len(str(a)) < 80:
        print(a)
    else:
        print('overflow')

Python: def Add(numa, numb):
	longer = (numa if len(numa) >= len(numb) else numb)
	shorter = (numa if len(numa) < len(numb) else numb)
	carry = 0
	result = ''
	for s in range(-1, -len(shorter) - 1, -1):
		ans = int(longer[s]) + int(shorter[s]) + carry
		if ans >= 10:
			result = str(ans % 10) + result
			carry = 1
		else:
			result = str(ans) + result
			carry = 0
	for l in range(-len(shorter) - 1, -len(longer) - 1, -1):
		ans = int(longer[l]) + carry
		if ans >= 10:
			result = str(ans % 10) + result
			carry = 1
		else:
			result = str(ans) + result
			carry = 0
	return (result if carry == 0 else '1' + result)

N = eval(input())
for _ in range(N):
	a = input()
	b = input()
	ans = Add(a, b)
	print('overflow' if len(ans) > 80 else ans)

Python: for _ in[0]*int(input()):
 s=eval(input()+'+'+input())
 print([s,'overflow'][s>=10**80])

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

Python: for _ in range(int(input())):
    a=int(input())+int(input())
    print([a,'overflow'][a>10**80])

Python: n = int(input())

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

Python: # 12,432 -> 012,432
def align_digits(a, b):
    la, lb = len(a), len(b)
    if la < lb:
        a = a.zfill(lb)
    elif lb < la:
        b = b.zfill(la)
    return a, b


def add(a, b):
    a, b = align_digits(a, b)
    zipped = list(zip(a[::-1], b[::-1]))
    carry = 0
    result = []
    for i, z in enumerate(zipped):
        a, b = z
        s = int(a) + int(b) + carry
        carry = int(s / 10)
        if i == len(zipped) - 1:
            result.append(str(s))
        else:
            result.append(str(s % 10))
    ans = ''.join(result[::-1])
    if len(ans) > 80:
        return 'overflow'
    return ans


if __name__ == '__main__':
    n_input = int(input())
    inputs = []
    for i in range(n_input):
        inputs.append((input(), input()))
    for a, b in inputs:
        print(add(a, b))

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