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

Python: while True:
  str = input()
  if str == "EOF" :
      break
  d = 1
  a , b = str.split(' ')
  s = int(a) + int(b)
  while s > 9:
     s = s / 10
     d = d + 1
  print(d)

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(1)

Python: import math


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

print(int(math.log10(a + b)) + 1)

Python: while True:
    a,b=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, math
for line in sys.stdin:
    a, b = map(int, line.split())
    print(int(math.log(a + b, 10)) + 1)

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

Python: # coding: utf-8
# Your code here!
while 1:
    try:
        line = input()
        lul = line.split()
        #printlul)
        a = int(lul[0])+int(lul[1])
        print(len(str(a)))
    except:
        break

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

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

Python: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        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: while True:
    try:
        a, b = map(int, input().split())
        c = a + b
        print(len(str(c)))

    except EOFError:
        break

Python: # coding: utf-8
# Your code here!

for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)

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

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

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

Python: while True:
    rig=[int(i) for i in input().split(" ")]
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10

Python: # -*- coding:utf-8 -*-
import sys
import math

array =[]
for line in sys.stdin:
    array.append(line)

for i in range(array):
    num = array[i].sprit(' ')
    a = num[0]
    b = num[1]
    n = a + b
    print(int(math.log10(x) + 1))

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

Python: while True:
 a,b=[int(i) for i in input().split()]
 if a==False:
  break
 print(len(a+b))

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

Python: # -*- coding: utf-8 -*-

import sys

def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n))


def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, input().split())
        digits = get_digits(a+b)
        print(digits)

if __name__ == '__main__':
    main()

Python: import math
while t == 0:	
	try:
		n = int(raw_input().split())
	except:
		break
	else:
		print(math.log10(int(n[0]) + int(n[1])) + 1)

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

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

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

num_of_data = 1
while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt)

Python: # -*- coding:utf-8 -*-

array = input().split()
a, b = int(array[0]), int(array[1])

x = a+b
print(int(math.log10(x) + 1))

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

Python: i = 0
while i < 200:
    sum = input()
    sum_list = sum.split(" ")
    print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    i += 1

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

Python: # -*- coding:utf-8 -*-

while True:
    try:
        array = input().split()
        a, b = int(array[0]), int(array[1])
    
        x = a+b
        print(int(math.log10(x) + 1))
    except:
        break

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

Python: import sys
for e in sys.stdin:
 print(len(str(eval('+'.join(e.split())))))

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

Python: import sys

if __name__ == '__main__':
    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c)))

Python: def __main():

    a,b = input().split(" ")
    a = int(a)
    b = int(b)
    z = a + b
    print(len(str(z)))


__main()

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