import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in (sum(int(y) for y in x.split()) for x in dataset):
    print(len(str(item))) import itertools itertools import operator operator dataset = [] dataset [] while True:
    try:
        dataset.append(input())
    except EOFError:
        break True try:
        dataset.append(input())
    except EOFError:
        break except EOFError:
        break break dataset.append(input()) dataset.append dataset append input() input for item in (sum(int(y) for y in x.split()) for x in dataset):
    print(len(str(item))) item (sum(int(y) for y in x.split()) for x in dataset) print(len(str(item))) print len(str(item)) len str(item) str item dataset = [] [] dataset
import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in (sum(int(y) for y in x.split()) for x in dataset):
    print(len(str(item)))