import sys,math

inputs = list()

for n in sys.stdin:
	inputs.append(list(map(int,n.split())))

for n in inputs:
	print(math.floor(math.log10(n[0]+n[1]))+1) import sys,math sys math inputs = list() inputs list() list for n in sys.stdin:
	inputs.append(list(map(int,n.split()))) n sys.stdin sys stdin inputs.append(list(map(int,n.split()))) inputs.append inputs append list(map(int,n.split())) list map(int,n.split()) map int n.split() n.split n split for n in inputs:
	print(math.floor(math.log10(n[0]+n[1]))+1) n inputs print(math.floor(math.log10(n[0]+n[1]))+1) print math.floor(math.log10(n[0]+n[1]))+1 math.floor(math.log10(n[0]+n[1])) math.floor math floor math.log10(n[0]+n[1]) math.log10 math log10 n[0]+n[1] n[0] n 0 n[1] n 1 1 inputs = list() list() inputs
import sys,math

inputs = list()

for n in sys.stdin:
	inputs.append(list(map(int,n.split())))

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