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: # National Budget
md = 80
for _ in range(int(input())):
    a,b = int(input()),int(input())
    ab = a + b
    if a >= pow(10,md) or b >= pow(10,md) or ab >= pow(10,md):
        print('overflow')
    else:
        print(a+b)

Python: num = int(input())

for i in range(num):
    total = int(input()) + int(input())
    if len(str(total)) > 80:
        print("overflow")
    else:
        print(total)

Python: for i in range(int(input())):
    try:
        a = int32(sum([int32(j) for j in input().split()]))
    except:
        print("overflow")
    else:
        print(a)

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

Python: n = int(input())
for i in range(n):
    x = input()
    y = input()
    if len(x) > 80 or len(y) > 80:
        print("overflow")
        continue
    s = ""
    rx = x[::-1]
    ry = y[::-1]
    lx = len(x)
    ly = len(y)
    if lx > ly:
        ml = lx
    else:
        ml = ly
    c = 0
    for j in range(ml + 1):
        x1 = 0
        y1 = 0
        if j < lx:
            x1 = int(rx[j])
        if j < ly:
            y1 = int(ry[j])
        c1 = x1 + y1 + c
        s += str(c1 % 10)
        c = c1 // 10

    rs = s[::-1]
    result = ""
    for j in range(len(rs)):
        if rs[j] != "0":
            result = rs[j:]
            break

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

Python: import sys
f = sys.stdin
n = int(f.readline())
for _ in range(n):
    a = f.readline().strip()
    b = f.readline().strip()
    c = int(a) + int(b)
    c = '{}'.format(c)
    print(c if len(c) else 'overflow ')

Python: import math

def calc_digit(data1, data2):
    if(data1 == 0):
        data_size2 = int(len(str(data2)))
        data_size1 = 1
    elif(data2 == 0):
        data_size1 = int(len(str(data2)))
        data_size2 = 1
    else:
        data_size1 = int(len(str(data1)))
        data_size2 = int(len(str(data2)))
    return(data_size1, data_size2)

def two_number_sum(data1, data2):
    result = data1 + data2
    if int(len(str(result))) > 80:
        print("overflow")
    else:
        print(result)

def main():
    a = []
    N = int(input())
    for i in range(N*2):
        a.append(input())
    for i in range(0, N*2):
        if i % 2 == 0:
            continue
        else:
            data1 = int(a[i-1])
            data2 = int(a[i])
            if(data1 == None):
                data1 = 0
            elif(data2 == None):
                data2 = 0
            x, y = calc_digit(data1, data2)
            if(x > 80 or y > 80):
                print("overflow")
                continue
            two_number_sum(data1, data2)

if __name__ == '__main__':
    main()

Python: import sys
import re
def line():return sys.stdin.readline().strip()

N = input()
while True:
    try:
        a = int(line())
        b = int(line())
        if a + b >= 10 ** 80:
            print("overflow")
        else:
            print(a + b)
    except:
        break

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

Python: N = int(input())
for _ in range(N):
    a = int(input())
    b = int(input())
    c = a + b
    length = len(str(c))
    print([c, "overflow"][length > 80])

Python: 
if __name__ == '__main__':
    n = (int)(input())
    for _ in range(n):
        sNumber = (int)(input())
        tNumber = (int)(input())
        uNumber = sNumber+tNumber
        print("over flow" if uNumber >= 10**80 else uNumber)

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(a) >= 80 or len(b) >= 80 or len(ans) >= 80 else ans)

Python: n = int(input())

for i in range(n):
    a = int(input())
    b = int(input())

    print(a + b)

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 ** 79 or B[i] >= 10 ** 79:
        print("overflow")
    elif A[i] + B[i]>= 10 ** 79:
        print("overflow")
    else:
        print(A[i]+B[i])

Python: import sys
f = sys.stdin
n = int(f.readline())
for _ in range(n):
    a = f.readline().strip()
    b = f.readline().strip()
    c = int(a) + int(b)
    c = '{}'.format(c)
    print(c if len(c) else 'overflow')

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

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()
	print(Add(a, b))

Python: n = int(input())
for i in range(n):
	a=int(input())
	b=int(input())
	print(a+b)

Python: for _ in range(int(input())):
    a, b = input(), input()
    if len(a) < 81 and len(b) < 81 :
        c = int(a) + int(b)
        if len(str(c)) < 81 : print(c)
        else : print('overflow')
    else : print('overflow')

Python: import math
count=int(input())
for i in range(count):
    x=int(input())
    y=int(input())
    ans=x+y
    dif=100000000000000000000000000000000000000000000000000000000000000000000000000000000
    if ans>=dif:
        print("overflow")
    else:
        print(ans)

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

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

Python: i = int(input())
for n in range(i):
    j = int(input())
    k = int(input())
    if len(str(j + k)) > 80:
        print("overflow")
    elif len(str(j)) or len(str(k)):
        print("overflow")
    else:
         print(j + k)

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