import sys

d = sys.stdin.readline()
while d:
    a, b = map(int,d.split())
    print(len(str(a+b)))
    d = sys.stdin.readline() import sys sys d = sys.stdin.readline() d sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline while d:
    a, b = map(int,d.split())
    print(len(str(a+b)))
    d = sys.stdin.readline() d a, b = map(int,d.split()) a map(int,d.split()) map int d.split() d.split d split b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b d = sys.stdin.readline() d sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline d = sys.stdin.readline() sys.stdin.readline() d a, b = map(int,d.split()) map(int,d.split()) a b = map(int,d.split()) map(int,d.split()) b d = sys.stdin.readline() sys.stdin.readline() d
import sys

d = sys.stdin.readline()
while d:
    a, b = map(int,d.split())
    print(len(str(a+b)))
    d = sys.stdin.readline()