import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    x = a+b
    c = 0
    while x/10 > 0:
        x /= 10        
        c += 1
    print c+1 import sys sys for line in sys.stdin:
    a, b = map(int, line.split())
    x = a+b
    c = 0
    while x/10 > 0:
        x /= 10        
        c += 1
    print c+1 line sys.stdin sys stdin a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b x = a+b x a+b a b c = 0 c 0 while x/10 > 0:
        x /= 10        
        c += 1
     x/10 > 0 x/10 x 10 0 x /= 10 x 10 c += 1 c 1 print c+1 c 1 x /= 10 10 x c += 1 1 c b = map(int, line.split()) map(int, line.split()) b x = a+b a+b x a, b = map(int, line.split()) map(int, line.split()) a c = 0 0 c
import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    x = a+b
    c = 0
    while x/10 > 0:
        x /= 10        
        c += 1
    print c+1