# coding: utf-8
import sys
import math

numbers = []
for line in sys.stdin:
    numbers.append(line.split())

for i in range(len(numbers)):
    sum = int(numbers[i][0]) + int(numbers[i][1])
    print int(math.log10(float(sum))) + 1 import sys sys import math math numbers = [] numbers [] for line in sys.stdin:
    numbers.append(line.split()) line sys.stdin sys stdin numbers.append(line.split()) numbers.append numbers append line.split() line.split line split for i in range(len(numbers)):
    sum = int(numbers[i][0]) + int(numbers[i][1])
    print int(math.log10(float(sum))) + 1 i range(len(numbers)) range len(numbers) len numbers sum = int(numbers[i][0]) + int(numbers[i][1]) sum int(numbers[i][0]) + int(numbers[i][1]) int(numbers[i][0]) int numbers[i][0] [i] numbers i 0 int(numbers[i][1]) int numbers[i][1] [i] numbers i 1 print int(math.log10(float(sum))) + 1 int(math.log10(float(sum))) int math.log10(float(sum)) math.log10 math log10 float(sum) float sum 1 numbers = [] [] numbers sum = int(numbers[i][0]) + int(numbers[i][1]) int(numbers[i][0]) + int(numbers[i][1]) sum
# coding: utf-8
import sys
import math

numbers = []
for line in sys.stdin:
    numbers.append(line.split())

for i in range(len(numbers)):
    sum = int(numbers[i][0]) + int(numbers[i][1])
    print int(math.log10(float(sum))) + 1