import sys

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

for line in sys.stdin:
    result = 0
    a, b = map(int, line.rstrip('\n').split(' '))
    x = a + b
    while x  > 0:
        result += 1
        x /= 10
    print result