import sys
import math

ary=[]
ans=[]
for i in sys.stdin:
    ary.append(list(map(int,i.split())))
    ans.append(int(math.log10(sum(ary[-1]))+1))
print('\n'.join(map(str,ans))) import sys sys import math math ary=[] ary [] ans=[] ans [] for i in sys.stdin:
    ary.append(list(map(int,i.split())))
    ans.append(int(math.log10(sum(ary[-1]))+1)) i sys.stdin sys stdin ary.append(list(map(int,i.split()))) ary.append ary append list(map(int,i.split())) list map(int,i.split()) map int i.split() i.split i split ans.append(int(math.log10(sum(ary[-1]))+1)) ans.append ans append int(math.log10(sum(ary[-1]))+1) int math.log10(sum(ary[-1]))+1 math.log10(sum(ary[-1])) math.log10 math log10 sum(ary[-1]) sum ary[-1] ary -1 1 print('\n'.join(map(str,ans))) print '\n'.join(map(str,ans)) '\n'.join '\n' join map(str,ans) map str ans ary=[] [] ary ans=[] [] ans
import sys
import math

ary=[]
ans=[]
for i in sys.stdin:
    ary.append(list(map(int,i.split())))
    ans.append(int(math.log10(sum(ary[-1]))+1))
print('\n'.join(map(str,ans)))