import sys

from operator import add

from math import log10



for i in sys.stdin:

    print((int(log10(add(*list(map(int, i.split()))))) + 1))
import sys

from operator import add



for i in sys.stdin:

    print((len(str(add(*list(map(int, i.split())))))))
import sys
from operator import add
from math import log10

for i in sys.stdin:
    print((int(log10(add(*list(map(int, i.split()))))) + 1))

import sys
from operator import add

for i in sys.stdin:
    print((len(str(add(*list(map(int, i.split())))))))

-from math import log10 -    print((int(log10(add(*list(map(int, i.split()))))) + 1)) +    print((len(str(add(*list(map(int, i.split())))))))