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: from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split()))))

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

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

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

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

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

Python: import numpy.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 True:
    try:
        a,b=(int(i) for i in input().split())
        print(len(str(a+b)))
    except EOFError:
        break

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

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans)))

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

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

Python: import math
while True:
    try:
        l = map(int, raw_input().split())
        l1 = [int(i) for i in l]
        sum = (l1[0] + l1[1])
        print(int(math.log10(sum) + 1))
    except EOFError:
        break

Python: def main():
    def inputs():
        li = []
        string = input()
        count = 0
        while count < 201 and string != "":
            li.append(string)
            string = input()
            count += 1
        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: while True:
    try:
        a = int(input())
        b = int(input())
        print(len(str(a + b)))
    except EOFError:
        break

Python: import sys
array = []
for inp in sys.stdin.readlines():
    array.append(inp.split())
for i in range(len(array)):
    a =int(array[i][0]) + int(array[i][1])
    print(len(str(a)))

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

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

Python: ans_list=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break

Python: ans = []

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

    s = str(a + b)
    cnt = len(s)
    ans.append(cnt)

for a in ans:
    print(a)

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

Python: #Digit Number

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

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

Python: while True:
    inNums = input().strip().split()
    a = int(inNums[0])
    b = int(inNums[1])
    temp = a+b
    x = 0
    digitNum = 0
    while temp // 10**x > 0:
        digitNum = x
        print(x)
    
    if inNums == None:
        break
    break

Python: import math
import sys

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


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

Python: import sys

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    print(len(str(a+b)))

Python: import sys
input_lines=sys.stdin.readlines()
for line in input_lines:
 x=[int(i) for i in line]
 print(len(str(x[0]+x[1])))

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

Python: import math

lst = []
while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log(10, a+b))+1)
    except EOFError:
        for i in lst:
            print(i)

Python: import math
while True:
	a, b = map(int, input().split())
	if(a==0 and b==0):
		break
	print(int(math.log10(a + b)) + 1)

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

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

Python: import math

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

    for i in data:
        print(i)

if __name__ == "__main__":
    main()

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

    return c

while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m))

Python: import math
nums = input().split()
print(math.ceil(math.log10(int(nums[0])*int(nums[1]))))

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

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

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

Python: __author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]
#print(numList)
result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(length)

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

Python: for i in input():
    i.sprit()
    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: while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break

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

Python: for i in range(3):
    a, b = list(map(int, input().split()))
    
    print(len(str(a + b)))

Python: import sys

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

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

Python: import sys
L = sys.stdin.readlines()
for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))+1)

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