import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break import math math while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break 1 try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break except:
        break break print(int(math.log10(sum(map(int, input().split())))+1)) print int(math.log10(sum(map(int, input().split())))+1) int math.log10(sum(map(int, input().split())))+1 math.log10(sum(map(int, input().split()))) math.log10 math log10 sum(map(int, input().split())) sum map(int, input().split()) map int input().split() ().split () input split 1
import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break