import sys

num_of_data = 1
while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt) import sys sys num_of_data = 1 num_of_data 1 while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt) True if num_of_data > 200:
        break

     num_of_data > 200 num_of_data 200 break try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
     except EOFError:
        sys.exit()
        
     sys.exit() sys.exit sys exit a, b = input().split() a input().split() ().split () input split b a = int(a) a int(a) int a b = int(b) b int(b) int b if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt) a >= 0 and a <= 1000000000 a >= 0 a 0 a <= 1000000000 a 1000000000 if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt) b >= 0 and b <= 1000000000 b >= 0 b 0 b <= 1000000000 b 1000000000 num_of_data += 1 num_of_data 1 sum = a+b sum a+b a b cnt = 1 cnt 1 while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
             True if sum < 10:
                    break
                 sum < 10 sum 10 break sum /= 10 sum 10 cnt += 1 cnt 1 print(cnt) print cnt a = int(a) int(a) a cnt += 1 1 cnt a, b = input().split() input().split() a num_of_data += 1 1 num_of_data b = input().split() input().split() b b = int(b) int(b) b sum = a+b a+b sum cnt = 1 1 cnt sum /= 10 10 sum num_of_data = 1 1 num_of_data
import sys

num_of_data = 1
while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt)
