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: import sys

for i in sys.stdin:
    a,b = i.split()
    a,b = int(a),int(b)
    print(a+b)

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

array =[]
for line in sys.stdin:
    array.append(line)
    
for i in range(len(array)):
    num = array[i].split(' ')
    a = int(num[0])
    b = int(num[1])
    n = a + b
    print(int(math.log10(n) + 1))

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

Python: import sys

for i in sys.stdin:
    print(len(str(sum(map(int,i.replace("\n", "").split(" "))))))

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

Python: while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count)

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

Python: import sys
import math

for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break

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

Python: import sys
from operator import add

for i in sys.stdin:
    print(len(str(add(*list(map(int, i.split()))))))

Python: while True :
    try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break

Python: try:
    s = []
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        a = int(s[i].split(' ')[0])
        b = int(s[i].split(' ')[1])
        print(len(str(a + b)))

Python: ans = []

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

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

print( len(str(c)) )

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

Python: import sys, math

def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.ceil(math.log10(a+b)))

if __name__ == '__main__':
    run()

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

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

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

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

Python: import sys

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

Python: for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass

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, line.split())
        digits = get_digits(a+b)
        print(digits)

if __name__ == '__main__':
    main()

Python: sss = input().split()
while sss:
    a,b = int(sss[0]), int(sss[1])
    ab = a + b
    c = 1
    while ab // 10 > 0:
        c += 1
        ab //= 10
    print(c)
    try: sss = input().split()
    except EOFError: break

Python: import sys
for e in sys.stdin:print(len(str(sum(map(int,e.split())))))

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

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

Python: import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

Python: import sys

while True:
    line = sys.stdin.readline()
    if line == '':
        break
    token = list(map(int, line.strip().split()))
    print(token[0] + token[1])

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

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

Python: #@ /usr/bin/env python3.4
import sys
list = sys.stdin.readlines()
for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1]))))

Python: from math import log10 as log
A = []
while True:
    S =list(map(int,input().split()))
    try:
        A.append(int(log(S[0]+S[1])+1))
    except IndexError:
        break
for i in A:
    print(i)

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

Python: a = raw_input()
b = raw_input()

len(str(int(a) + int(b)))

Python: judge = True
while judge:
    a,b = map(int, input().split(" "))
    if a == None:
        judge = False
    else:
        c = a+b
        print(len(str(c)))

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

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

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

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

Python: while (True):
    b = list(map(int, input().split(" ")))
    print(b)
    if(b == ['']): break
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

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

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
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

Python: import math
lis=[]
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))
        lis.append(a+b)    
for i in lis:            
    print(i)

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

Python: answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(nums[0]+nums[1]))
    except :
        break
for i in range(len(answers)):
    print(answers[i])