Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		if len(chunks) != 2 {
			break
		}
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(a + b)
	}
}

Python: a,b=map(int,input().split())
c=a+b
ans=0
if c>=0 and c<=9:
    ans=1
if c>=10 and c<=99:
    ans=2
if c>=100 and c<=999:
    ans=3
if c>=1000 and c<=9999:
    ans=4
if c>=10000 and c<=99999:
    ans=5
if c>=100000 and c<=999999:
    ans =6
if c>=1000000 and c<=9999999:
    ans=7
print(str(ans))

Python: def degit(num):
    count = 0
    while num > 0:
        num //= 10
        count += 1
    return count

a = []
b = []
count = 0

while True:
    try:
        buff = input().split()
        a.append(int(buff[0]))
        b.append(int(buff[1]))
        count += 1
    except:
        break

for i in range(count):
    print(degit(a[i]+b[i]))

Python: a = raw_input()
b = raw_input()

print(len(str(int(a) + int(b))))

Python: import math
import sys

ab = []
for line in sys.stdin:
    ab.append(list(map(int, input().split())))


for line in ab:
    a, b = line[0], line[1]
    add_ans = a + b
    print(int(math.log10(add_ans)) + 1)

Python: a,b = map(lambda x: int(x), input().split())
c = a + b
print(len(str(c)))

Python: import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0+math.log(c,10)))
    else:
    	print(0)

Python: import sys
if __name__ == '__main__':

	for line in sys.stdin:
		n,m = map(int,line.split())
		print(len(str(n+m)))

Python: import math
while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Python: import sys

for line in sys.stdin:
    a, b = list(map(int, line.split()))
    print(len(str(a + b)))

Python: # Aizu Problem 0002: Digit Number
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a, b = [int(_) for _ in line.split()]
    print(len(str(a + b)))

Python: import sys
for line in sys.stdin:
    a, b = map(int, input().split())
    c=int(a+b)
    count=0
    while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
    print(count)
else:
    print('Warning: EOF occurred before "0" terminator')

Python: import sys

for line in sys.stdin:
    a, b = map(int, line.split())
    print((a + b)//10 + 1)

Python: while 1:
    try: print(len(str(sum(list(map(int, input().split()))))))
    except: break

Python: a,b=map(int,input().split())
sum=str(a+b)
print(len(sum))

Python: while 1:
    try: print(len(str(sum(list(map(int, input().split()))))))
    except: break

Python: while True:
    try:
        a, b = map(int, input().split())
        print(len(list(a+b)))
    except:
        break

Python: while True:
    try:
        a,b = map(int,input().split())
        c = a+b
        print(len(str(c)))
    except:
        break

Python: while True:
	try:
		a, b = map(int, input().split())
		print(len(str(a+b)))
	except:
		break

Python: import math
import sys

ab = []
for line in sys.stdin:
    ab.append(list(map(int, input().split())))


for line in ab:
    a, b = line[0], line[1]
    add_ans = a + b
    print(len(str(add_ans)))

Python: while True:
 a,b=map(int,input().split())
 digit=(a+b)
 digit2=str(digit)
 print(len(digit2))

Python: import sys

for line in sys.stdin:
    ar = line.split(" ")
    print(len(str(int(ar[0]) + int(ar[1]))))

Python: while True:
    try:
        a,b=map(int,input().split());
        print(len(str(a+b)));
    except:
        break

Python: while 1:
    try: print(len(str(sum(list(map(int,input().split()))))))
    except: break

Python: import sys,math
inputs = list()
for n in sys.stdin:
	inputs.append(list(map(int,n.split())))
for n in inputs:
	print(math.floor(math.log10(n[0]*n[1]))+1)

Python: import sys
for line in sys.stdin:
	a = int(line.split()[0])
	b = int(line.split()[1])
	s = a + b
	print(len(str(s)))

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

while True:
	try:
		numa, numb = [item for item in input().split()]
		print(len(BigAdd(numa, numb)))
	except EOFError:
		break

Python: from sys import stdin
for a in stdin :
    b = a.strip().split()
    b = sum([int(i) for i in b])
    c = 1
    while int(b/10) > 0:
        b = int(b/10)
        c += 1
    print(c)

Python: import sys
a = []
for line in sys.stdin:
    a.append(line)
for i in a:
    sum = i[0] + i[1]
    print(len(str(sum)))

Python: import sys
import math

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(int(math.log10(token[0] + token[1]) + 1))

Python: import sys 
for line in sys.stdin:
  a, b = line.split()
  a = int(a)
  b = int(b)
  c = a + b
  cnt = 0
  while c > 0:
    c //= 10
    cnt += 1
  print(cnt)

Python: import math
x,y=[int(i) for i in input().split()]
a = int (math.log10(x + y) + 1)
print(a)

Python: while(1):
    a,b=input().strip().split()
    if a<0 or b<0:
        break
    a=int(a)
    b=int(b)
    sum = a+b
    sum = str(sum)
    print(len(sum))

Python: a = int(input())
b = int(input())
c = a+b
d = 1
while(int(c/10) != 0):
	d += 1
	c /= 10
print(d)

Python: import math
a,b = [int(x) for x in input().split()]
x = a + b
print(int(math.log10(x))+1)

Python: try:
    s=[]
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1]))))

Python: while True:
	try:
		a,b = map(int,input().split(" "))
		print(len(str(a+b)))
	except: break

Python: while True:
    a,b=map(int,input().split())
    c=a+b
    ans=0
    if c>=0 and c<=9:
        ans=1
    if c>=10 and c<=99:
        ans=2
    if c>=100 and c<=999:
        ans=3
    if c>=1000 and c<=9999:
        ans=4
    if c>=10000 and c<=99999:
        ans=5
    if c>=100000 and c<=999999:
        ans=6
    if c>=1000000 and c<=9999999:
        ans=7
    print(ans)

Python: import sys

d = sys.stdin.readlines()
for i in d:
    a, b = [int(x) for x in i.split()]
    print(len(str(a + b)))

Python: while 1:
    a, b = map(int, input().split())
    c = a + b
    c = str(c)
    print(len(c))

Python: l = list(map(int, input().split()))

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

Python: while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans)

Python: from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i)

Python: while True:
	a, b = map(int, input().split())
	if(a==0 and b==0): break
	print(len(str(a+b)))

Python: while True:
    try:
        a, b = map(int, input().split())
    except:
        break
    print(len(str(a + b)))

Python: while 1:
    try:
        a, b = map(int, input().split())
        print(len(str(a+b)))

    except:
        break