Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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)

Python: for i in range(1, 200):

    try:
        str1 = input()
        list = str1.split(" ")
        result = len(str(int(list[0]) + int(list[1])))
        print(result)
    except:
        break

Python: import math

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

Python: while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break

Python: import sys
import math

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

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

Python: import sys

while True:
    print(len(str(abs(sum(map(int, sys.stdin.readline().rstrip().split(' ')))))))

Python: import math
for i in range(3):
	x,y=map(int,input().split())
	print(int(math.log10(x+y))+1)

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

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

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

Python: while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break

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

Python: res=[]

while True:
    s=input()
    if s:
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    else:
        break

for n in res:
    print(len(str(n)))

Python: from math import log10, ceil
while True:
 try:
  a=[int(item) for item in input().split()]
  b=a[0]+a[1]
  print(len(str(b)))
 except EOFError:break