import sys
for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d) import sys sys for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d) line sys.stdin sys stdin l=0 l 0 for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	 l range(len(line)) range len(line) len line if(line[l] == ' '):
			p = l
			break
	 line[l] == ' ' line[l] line l ' ' p = l p l break a = line[0:p] a line[0:p] line 0:p 0 p b = line[p+1:] b line[p+1:] line p+1: p+1 p 1 c = int(a)+int(b) c int(a)+int(b) int(a) int a int(b) int b d = 1 d 1 while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	 int(c/10) != 0 int(c/10) int c/10 c 10 0 d += 1 d 1 c = int(c/10) c int(c/10) int c/10 c 10 print(d) print d l=0 0 l d = 1 1 d c = int(c/10) int(c/10) c c = int(a)+int(b) int(a)+int(b) c d += 1 1 d p = l l p b = line[p+1:] line[p+1:] b a = line[0:p] line[0:p] a
import sys
for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d)
