import sys
while(True):
    try:
        a,b=[int(i) for i in input().split()]
        print(len(str(a+b)))
    except:
        sys.exit() import sys sys while(True):
    try:
        a,b=[int(i) for i in input().split()]
        print(len(str(a+b)))
    except:
        sys.exit() True try:
        a,b=[int(i) for i in input().split()]
        print(len(str(a+b)))
    except:
        sys.exit() except:
        sys.exit() sys.exit() sys.exit sys exit int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a,b=[int(i) for i in input().split()] a [int(i) for i in input().split()] b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b=[int(i) for i in input().split()] [int(i) for i in input().split()] b a,b=[int(i) for i in input().split()] [int(i) for i in input().split()] a
import sys
while(True):
    try:
        a,b=[int(i) for i in input().split()]
        print(len(str(a+b)))
    except:
        sys.exit()