while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count)
 while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count) 1 try:
        x,y = map(int, input().split())
    except EOFError:
        break
     except EOFError:
        break
     break x,y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y count = 0 count 0 sum = x+y sum x+y x y while sum > 0:
        sum = sum // 10
        count += 1
     sum > 0 sum 0 sum = sum // 10 sum sum // 10 sum 10 count += 1 count 1 print(count) print count sum = sum // 10 sum // 10 sum count += 1 1 count sum = x+y x+y sum y = map(int, input().split()) map(int, input().split()) y count = 0 0 count x,y = map(int, input().split()) map(int, input().split()) x
while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count)

