import math
while True:
    try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break
 import math math while True:
    try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break True try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break except:
        break break int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a,b = [int(x) for x in input().split()] a [int(x) for x in input().split()] b x = a + b x a + b a b print(int(math.log10(x))+1) print int(math.log10(x))+1 int(math.log10(x)) int math.log10(x) math.log10 math log10 x 1 a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] a x = a + b a + b x b = [int(x) for x in input().split()] [int(x) for x in input().split()] b
import math
while True:
    try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break

