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(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

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

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

Python: import sys
import math

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

Python: from sys import stdin
import math

lines = [line for line in stdin]

for line in lines:
    a, b = [float(n) for n in line]
    print(math.floor(math.log10(a + b)))
    # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line]
    # print(x1, y1, x2, y2, x3, y3, xp, yp)

Python: for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))

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

Python: import sys
import math

ary=[]
ans=[]
for i in sys.stdin:
    ary.append(list(map(int,i.split())))
    ans.append(int(math.log10(sum(ary[-1]))+1))
print('\n'.join(map(str,ans)))

Python: import sys

for line in sys.stdin.readlines():
    i = line.rstrip().split(' ')
    j = int(i[0]) + int(i[1])
    a = str(j)
    print(len(a))

Python: data_set_count = 3
for _ in range(data_set_count):
    data_set = list(map(int, input().split()))
    data = data_set[0] + data_set[1]
    print(len(str(data)))

Python: [print(i//10)for i in[sum(int(e)for e in ln.split())for ln in __import__("sys").stdin]]

Python: def main():
    for i in range(3):
        A = list(map(int,input().split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main()

Python: import math
import sys

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

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

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

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

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

Python: import sys

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

Python: def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s

try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass

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

Python: import sys

for line in sys.stdin: print(sum(map(int,line.split())))

Python: while True:
	try:
		x,y=map(int,input().split())
		print(int(math.log10(x+y))+1)
	except EOFError:
		break

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

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

Python: import sys
a = [print(len(sum(map(int, line.split())))) for line in sys.stdin]

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

Python: import sys
import math

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

Python: import sys

def main():
    for input_line in sys.stdin:
        num1 = int(input_line.split(' ')[0])
        num2 = int(input_line.split(' ')[1])
        
        sum = str(num1 + num2)
        
        count = 0
        for num in sum:
            count += 1
        else:
            print(count)
    
if __name__ == '__main__':
    main()

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

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

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

Python: import math

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

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

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

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

Python: import sys

l = []
try:
    for line in sys.stdin:
        a,b = map(int, line.split())
        c = a + b
        l.append(len(str(c)))

except:
    for i in l:
        print(i)

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: l = map(int, raw_input().split())
l1 = [int(i) for i in l]
sum = (l1[0] + l1[1])
import math
print(int(math.log10(sum) + 1))

Python: import sys
import math

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

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

Python: # 何行あるかわからない入力をまとめて処理する
import sys
line = sys.stdin.readlines()
#print(line)
for i in line:
    # map関数は配列の型を一括変換するのに便利
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

Python: a = []
while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break

for i in a:
    print(len(str(i[0] + i[1])))

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

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

Python: def __main():

    x = int(input())
    y = int(input())

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


__main()

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

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

Python: def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break

Python: import sys
for line in sys.stdin:
    ns = list(map(int, line.split()))
    print(len(str(sum(ns))))

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

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

Python: #import math
while True:
    line = input().split(" ")
    if(len(line) != 2):
        exit()
    a = int(line[0])
    b = int(line[1])
    print(int(math.log10(a+b))+1)

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