import sys

l = sys.stdin.readlines()
for i in l:
    x,y = map(int,i.split())
    print(len(str(x+y))) import sys sys l = sys.stdin.readlines() l sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for i in l:
    x,y = map(int,i.split())
    print(len(str(x+y))) i l x,y = map(int,i.split()) x map(int,i.split()) map int i.split() i.split i split y print(len(str(x+y))) print len(str(x+y)) len str(x+y) str x+y x y l = sys.stdin.readlines() sys.stdin.readlines() l y = map(int,i.split()) map(int,i.split()) y x,y = map(int,i.split()) map(int,i.split()) x
import sys

l = sys.stdin.readlines()
for i in l:
    x,y = map(int,i.split())
    print(len(str(x+y)))