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: 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) <= 80 else 'overflow')

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

Python: import math

n = int(input())
for i in range(0, n) :
    a = int(input())
    b = int(input())
    if (math.log10(a + b) + 1 > 80) :
        print("overflow")
        continue
    print(a + b)

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

Python: n=int(input())

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

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

for i in range(n):
	a=int(input())
	b=int(input())
	if max(a,b,a+b)>=10**80:
		ans_list.append("overflow")
	else:
		ans_list.append(a+b)

for i in ans_list:
	print(i)

Python: if __name__ == '__main__':
    N = int(input())
    for _ in range(N):
        a = input()
        b = input()
        c = str(int(a) + int(b))
        if len(a) > 80 or len(b) > 80 or len(c) > 80:
            print("overflow")
        else:
            print(c)

Python: import math

def main() :
    n = int(input())
    for i in range(0, n) :
        a = int(input())
        b = int(input())
        if (math.log10(a + b) + 1 > 80) :
            print("overflow")
            continue
        print(a + b)

main()

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: import math

n = int(input())

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

Python: import math

N = int(input())
for i in range(N):
    a = int(input())
    b = int(input())
    if math.log10(a) > 79 or math.log10(b) > 79 or math.log10(a + b) > 79:
        print("overflow")
    else:
        print(a + b)

Python: '''
Created on Mar 21, 2013

@author: wukc
'''

from sys import stdin

n=int(stdin.readline())
for i in range(n):
    a,b=[stdin.readline().strip().lstrip("0") for k in range(2)]
    if len(a)>80 or len(b)>80:
        print("overflow")
        continue
    a,b=a.rjust(len(b),'0'),b.rjust(len(a),'0')
    ans=[]
    c=0
    for x,y in zip(a[::-1],b[::-1]):
        t=int(x)+int(y)+c
        c=t//10
        ans+=[t%10]
    ans+=[c]
    ans="".join(map(str,ans[::-1])).lstrip("0")
    if len(ans)>80:
        print("overflow")
        continue
    print(ans.rjust(1,'0'))

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(v)
            
    
if __name__ == '__main__':
    main()

Python: n=int(input())
A=[]
while True:
	try:
		x=int(input())
		A.append(x)
	except EOFError:
		break
start=0
end=start+n
for i in range(len(A)//n):
	print(sum(A[start:end]))
	start+=n
	end+=n

Python: '''
Created on Mar 21, 2013

@author: wukc
'''

from sys import stdin

n=int(stdin.readline())
for i in range(n):
    a,b=[stdin.readline().strip().lstrip("0") for k in range(2)]
    if len(a)>80 or len(b)>80:
        print("overflow")
        continue
    a,b=a.rjust(len(b),'0'),b.rjust(len(a),'0')
    ans=[]
    c=0
    for x,y in zip(a[::-1],b[::-1]):
        t=int(x)+int(y)+c
        c=t//10
        ans+=[t%10]
    ans+=[c]
    ans="".join(map(str,ans[::-1])).lstrip("0")
    if len(ans)>80:
        print("overflow")
        continue
    print(ans)

Python: for x in range(input()):
    x = input() + input()
    print("{:.80g}".format(x) if x < 1E79 else "overflow")

Python: upper = 10**80
n = int(input())
for i in range(n):
    n1 = int(input())
    n2 = int(input())
    if n1 >= upper or n2 >= upper:
        print("overflow")
        continue
    print( n1 + n2 if n1+n2 < upper else "overflow")

Python: import math

c  = raw_input();

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

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

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

Python: def main():
    n = int(input())
    answers = []
    for _ in range(n):
        a = input()
        b = input()
        la, lb = len(a), len(b)
        if la > 80 or lb > 80:
            answers.append("overflow")
            continue
        if la > lb:
            ll = la
            for _ in range(la-lb):
                b = "0" + b
        else:
            ll = lb
            for _ in range(lb-la):
                a = "0" + a
        ans = ""
        bl = 0
        for i in range(ll):
            tmp = int(a[ll-i-1]) + int(b[ll-i-1]) + bl
            if tmp >= 10:
                bl = 1
                tmp = tmp % 10
            else:
                bl = 0
            ans = str(tmp) + ans
        if bl == 1:
            ans = "1" + ans
        if len(ans) > 80:
            answers.append("overflow")
            continue
        answers.append(ans)
    print(*answers, sep="\n")

if __name__ == "__main__":
    main()

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

import sys
import math

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

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

for data in anss:
    print(data)

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

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

Python: from decimal import Decimal


n = int(input())
for _ in range(n):
    a = input()
    b = input()
    if max(len(a), len(b)) >= 80:
        print("overflow")
        continue
    s = Decimal(a) + Decimal(b)
    if len(str(s)) >= 80:
        print("overflow")
    else:
        print(s)

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

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)