Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

Python: import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count);

Python: a = input()
b = input()
c = str(int(a)+int(b))
print(len(c))

Python: import sys

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

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

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

Python: import sys
for line in sys.stdin:
    a,b = line.split(" ")
    print(len(str(int(a)+int(b))))

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

Python: def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        print(int(a[0]) + int(a[1]))
    return None

if __name__ == '__main__':
    main()

Python: import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

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

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

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

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

Python: output = []
while True:
    try :
        a,b = map(int, input().split())
    except :
        break
    output.append(len(str(a+b)))
for x in range(len(output)):
    print(output[x])

Python: import math

while True:
    try:
        data = list(map(int,input().split()))
        sum = data[0] + data[1]
        sum_size = int (math.log10(sum) + 1)
        print(sum_size)
    except:
        break;

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

Python: import math
a,b=map(int,input().split())
c=int(math.log10(a+b)+1)
print(c)

Python: def __main():

    x = input()
    y = input()

    z = x + y
    print(len(str(z)))


__main()

Python: if __name__ == "__main__":
    for i in range(200):
        a = list(map(int,input().strip().split()))
        if len(a) == 0 :break
        absum = a[0] + a[1]
        count = 1
        while 1:
            if absum < 10: break
            absum= absum /10
            count += 1
        print(count)

Python: import sys
[print(len(str(sum(list(map(int, i.split())))))) for i in sys.stdin]

Python: if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append([int(item) for item in line.split(" ")])

    for n in nums:
        sum = n[0] + n[1]
        print(len(str(sum)))

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: while True:
 a,b=[int(i) in input().split()]
 print(len(a+b))

Python: import sys

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

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

Python: import sys

l = sys.stdin.readlines()
for i in l:
    x,y = map(int,i.split())
    print(len(str(x+y)))

Python: import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

Python: import sys

tokens = []
for line in sys.stdin.readlines():
    tokens.append(list(map(int, line.strip().split())))

for i in range(len(tokens)):
    print(tokens[i][0] + tokens[i][1])

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

Python: import math
a, b = map(int, input().split())
print(int(math.log10(a + b)) + 1)

Python: import sys

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

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

Python: def sum_of_num(num_list):
    return sum(num_list)

def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z)

while True:
    try:
        num_list = raw_input().split(' ')
        summation = sum_of_num(int(num_list))
        calculate_digit_sum(summation)
    except:
        break

Python: while True:
    a = int(input())
    b = int(input())
    print(len(str(a + b)))

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

Python: res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break

Python: i = int(input())
i += int(input())
i = str(i)
print (len(i))

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

Python: # coding: utf-8
import fileinput
import math

reslt = []

for line in fileinput.input():
        tokens = list(map(int, line.strip().split()))
        wa = tokens[0], tokens[1]
        keta = int(math.log10(wa) + 1)
        result.append(keta)

for i in range(len(result)):
    print[i]

Python: import math
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a)

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

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

        print(len(c))
    except:
        break

Python: while True:
    line = input()
    if not line:
        break
    a, b = map(int, line.split())
    print(a + b)

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

Python: import sys

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

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

Python: import math
t = 0
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a)

Python: import sys
 
su = 0
for line in sys.stdin:
    for x in line.split():
        su += int(x)
    su = str(su)
    size = len(su)
    print(size)
    su = 0

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)