Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

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

Python: import math
a, b = map(int, input().split())
ans = a + b
print(int(math.log10(ans)) + 1)

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

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

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

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

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 line in sys.stdin.readlines():
    a, b = map(int, line.split())
    print(len(str(a + b)))

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

def main():
    nums = input().split(" ")
    sum = int(nums[0]) + int(nums[1])
    print(len(str(sum)))

if __name__ == '__main__':
    main()

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

Python: import sys

nums = []

for line in sys.stdin:
    nums.append(line.rstrip())


for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b)))

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

Python: # AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

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

Python: while 1:
    try:
        i = list(map(int, input().split()))
        print(len(str(i[0]+i[1])))
    except:
        break

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

Python: import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break

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

Python: import math
import sys

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


for x in ab:
    a, b = x.split(" ")
    add_ans = int(a + b)
    print(len(str(add_ans)))

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

for i in range(len(a)):
    print(a[i])

Python: import sys,math

inputs = sys.stdin.readlines()
inputs = list(map(lambda x:list(map(int,x.split())),inputs))

for n in inputs:
	print(math.floor(math.log10(n[0]*n[1]))+1)

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

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

for i in range(len(a)):
    print(a[i])

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

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

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

c = a + b

digits = 0

while c != 0:
    c = int(c / 10)
    digits += 1

print(digits)

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

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

Python: import sys

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

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

Python: import sys

[print(len(str(sum([int(j) for j in i.split()])))) for i in sys.stdin]

Python: import sys,math
a=[math.floor(math.log(sum(map(int,l.split())),10)+1) for l in sys.stdin]
for d in a:
    print(d)

Python: a = raw_input() ;l = a.split(); print(len(str(l[0]))) if (len(l) != 2) else len(str(int(l[0])+ int(l[1])))

Python: import sys

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: while True:
    try:
        line = input()
    except EOFError:
        break
    for c in line:
        print(len(filter(lambda c: c in '123456789', line)))

Python: import math

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

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

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

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

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

Python: try:
    while True:
        a, b = [int(x) for x in input().split()]
        print(len(str(a+b)))
    pass

except EOFError:
    pass

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

Python: # coding: utf-8
import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))

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

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:
        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))
    if a==0 and b==0:
        print(1)
    else:
    	print(a+b)

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