# -*- coding:utf-8 -*-
import sys
import math

array =[]
for line in sys.stdin:
    array.append(line)
    
for i in range(len(array)):
    num = array[i].split(' ')
    a = int(num[0])
    b = int(num[1])
    n = a + b
    print(int(math.log10(n) + 1)) import sys sys import math math array =[] array [] for line in sys.stdin:
    array.append(line)
     line sys.stdin sys stdin array.append(line) array.append array append line for i in range(len(array)):
    num = array[i].split(' ')
    a = int(num[0])
    b = int(num[1])
    n = a + b
    print(int(math.log10(n) + 1)) i range(len(array)) range len(array) len array num = array[i].split(' ') num array[i].split(' ') [i].split [i] array i split ' ' a = int(num[0]) a int(num[0]) int num[0] num 0 b = int(num[1]) b int(num[1]) int num[1] num 1 n = a + b n a + b a b print(int(math.log10(n) + 1)) print int(math.log10(n) + 1) int math.log10(n) + 1 math.log10(n) math.log10 math log10 n 1 b = int(num[1]) int(num[1]) b n = a + b a + b n num = array[i].split(' ') array[i].split(' ') num a = int(num[0]) int(num[0]) a array =[] [] array
# -*- coding:utf-8 -*-
import sys
import math

array =[]
for line in sys.stdin:
    array.append(line)
    
for i in range(len(array)):
    num = array[i].split(' ')
    a = int(num[0])
    b = int(num[1])
    n = a + b
    print(int(math.log10(n) + 1))