import sys
values = []
for line in sys.stdin:
    values.append([int(x) for x in line.split()])
digit = 0
for x, y in values:
    sum = x + y; digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit) import sys sys values = [] values [] for line in sys.stdin:
    values.append([int(x) for x in line.split()]) line sys.stdin sys stdin int(x) for x in line.split() for x in line.split() x line.split() line.split line split for x in line.split() int(x) int x values.append([int(x) for x in line.split()]) values.append values append [int(x) for x in line.split()] digit = 0 digit 0 for x, y in values:
    sum = x + y; digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit) x y values sum = x + y sum x + y x y digit = 0 digit 0 while sum >= 1:
        sum //= 10
        digit += 1
     sum >= 1 sum 1 sum //= 10 sum 10 digit += 1 digit 1 print(digit) print digit sum //= 10 10 sum digit = 0 0 digit sum = x + y x + y sum digit = 0 0 digit values = [] [] values digit += 1 1 digit
import sys
values = []
for line in sys.stdin:
    values.append([int(x) for x in line.split()])
digit = 0
for x, y in values:
    sum = x + y; digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit)