import sys

while True:
    try:
	a,b = raw_input().split()
	c = int(a) + int(b)
	for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
    except EOFError:
	break import sys sys while True:
    try:
	a,b = raw_input().split()
	c = int(a) + int(b)
	for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
    except EOFError:
	break True try:
	a,b = raw_input().split()
	c = int(a) + int(b)
	for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
    except EOFError:
	break except EOFError:
	break break a,b = raw_input().split() a raw_input().split() ().split () raw_input split b c = int(a) + int(b) c int(a) + int(b) int(a) int a int(b) int b for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
     i range(10) range 10 if c / (10**i) == 0:
		print (i)
		break
     c / (10**i) == 0 c / (10**i) c 10**i 10 i 0 print (i) print i break a,b = raw_input().split() raw_input().split() a c = int(a) + int(b) int(a) + int(b) c b = raw_input().split() raw_input().split() b
import sys

while True:
    try:
	a,b = raw_input().split()
	c = int(a) + int(b)
	for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
    except EOFError:
	break