results=[]
from sys import stdin
for line in stdin:
    a, b = (int(i) for i in line.split())
    results.append(len(str(a+b)))
for i in results:
    print i results=[] results [] from sys import stdin for line in stdin:
    a, b = (int(i) for i in line.split())
    results.append(len(str(a+b))) line stdin int(i) for i in line.split() for i in line.split() i line.split() line.split line split for i in line.split() int(i) int i a, b = (int(i) for i in line.split()) a (int(i) for i in line.split()) b results.append(len(str(a+b))) results.append results append len(str(a+b)) len str(a+b) str a+b a b for i in results:
    print i i results print a, b = (int(i) for i in line.split()) (int(i) for i in line.split()) a results=[] [] results b = (int(i) for i in line.split()) (int(i) for i in line.split()) b
results=[]
from sys import stdin
for line in stdin:
    a, b = (int(i) for i in line.split())
    results.append(len(str(a+b)))
for i in results:
    print i