# -*- utf-8 -*-

while True:
    try:
        inp = raw_input()
        i = map(int, inp.split())
        a = i[0]
        b = i[1]
    
        s = a + b
    except:
        break
    
    ans = 0
    
    while s >= 1:
        s /= 10
        ans += 1
    
    print ans while True:
    try:
        inp = raw_input()
        i = map(int, inp.split())
        a = i[0]
        b = i[1]
    
        s = a + b
    except:
        break
    
    ans = 0
    
    while s >= 1:
        s /= 10
        ans += 1
    
    print ans True try:
        inp = raw_input()
        i = map(int, inp.split())
        a = i[0]
        b = i[1]
    
        s = a + b
    except:
        break
    
     except:
        break
    
     break inp = raw_input() inp raw_input() raw_input i = map(int, inp.split()) i map(int, inp.split()) map int inp.split() inp.split inp split a = i[0] a i[0] i 0 b = i[1] b i[1] i 1 s = a + b s a + b a b ans = 0 ans 0 while s >= 1:
        s /= 10
        ans += 1
    
     s >= 1 s 1 s /= 10 s 10 ans += 1 ans 1 print a = i[0] i[0] a ans = 0 0 ans b = i[1] i[1] b inp = raw_input() raw_input() inp s /= 10 10 s i = map(int, inp.split()) map(int, inp.split()) i s = a + b a + b s ans += 1 1 ans
# -*- utf-8 -*-

while True:
    try:
        inp = raw_input()
        i = map(int, inp.split())
        a = i[0]
        b = i[1]
    
        s = a + b
    except:
        break
    
    ans = 0
    
    while s >= 1:
        s /= 10
        ans += 1
    
    print ans