Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

Python: while(1):
    try:
        a, b= (int(i) for i in input().split())
        print(len(str(eval('a+b'))))
    except:break

Python: def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c

inp = input()
while (inp != ''):
    n, m = inp.split(' ')
    n = int(n)
    m = int(m)
    print(digits(n + m))
    inp = input()

Python: values = []
x, y = [int(x) for x in input().split()]
digit = 0
sum = x + y
while sum >= 1:
    sum //= 10
    digit += 1
print(digit)

Python: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Python: import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        v = line.split(" ")
        print(len(str(sum([int(i) for i in v]))))

Python: import math
while(True):
	date=input()
	date=date.split()
	date=int(date[0])+int(date[1])
	digit=int(math.log10(date))
	print(digit)

Python: import math

def main():
    while 1:
        try:
            n = input().split()
            a = int(n[0])
            b = int(n[1])
            ans = int(math.log10(a+b)+1)
            print(ans)
        except IndexError:
            break

if __name__ == "__main__":
    main()

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

Python: import math
x = map(raw_input().split(' '))
a = x[0] + x[1]
print(int(math.log10(a))+1)

Python: import sys

while True:
    data = sys.stdin.readline().strip()
    if data is None or data == '':
        break

    data = data.split(' ')
    num1 = int(data[0])
    num2 = int(data[1])
    sum = num1 + num2
    print(len(str(sum)))

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

Python: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

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 math
x = map(raw_input().split(' '))
print(int(math.log10(x[0]+x[1]))+1)

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

Python: # coding=utf-8
import math


while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit)

Python: x,y=[int(i) for i in input().split()]

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: while True:
  try:
    a,b=map(int,input().split(" "))
    print(len(str(a+b)))
  except: break

Python: import math

for n in range(200):
    nums = list(map(int, input().split()))
    if nums==[]:
        break
    else:
        if nums[0]==0:
            a=1
        else:
            a = int(1.0+math.log(nums[0],10))
        if nums[1]==0:
            b=1
        else:
            b = int(1.0+math.log(nums[1],10))
    print(a+b)

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

Python: import math
while True:
	x = map(int,raw_input().split(' '))
	a = math.log10(x[0] + x[1])
	if str(x[0]) != 'homoo...':
		print(int(a+1))
		continue
	else:
		break

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

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

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

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

Python: while(True):
    x,y=input().split()
    if x=="EOFError":
        break
    k=int(x)+int(y)
    print(len(str(k)))

Python: for i in input():
    i.split()
    a = int(i[i][0])
    b = int(i[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Python: #coding:utf-8

while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n)))

Python: nums = input().split(" ")
sum = int(nums[0]) + int(nums[1])
print(len(str(sum)))

Python: l = 0
l = input().split()
a = len(l[0])
b = len(l[1])
k=a+b
print(k)

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: a,b=map(int,input().split())
print(len(str(a+b)))

Python: import sys

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

Python: l = 0
l = input().split()
a = int(l[0])
b = int(l[1])
k=str(a+b)
print(len(k))

Python: a, b = map(int, input().split())

c = a + b

digits = 0

while c != 0:
  c = c / 10
  digits += 1

print(digits)

Python: a,b = map(int, input().split())
sum = a + b
digits = 1
while(sum//10 != 0):
    digits += 1
    sum //= 10
print(str(digits))

Python: import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main()

Python: while True:
	x = map(int,raw_input().split(' '))
	a =int( math.log10(x[0] + x[1]) + 1)
	if a <=1000000 :
		continue
	else:
		break

Python: #coding: utf-8

while True:
	try:
		s = input().split(" ")
		num = int(s[0]) + int(s[1])
		print(len(str(num)))
	except:
		break

Python: # coding: utf-8
remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False

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())
    print(len(str(a+b)))
  except:
    break

Python: import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) )