import math
while True:
        try:
                a =map(int,raw_input().split())
                b = a[0] + a[1]
                print len(str(a[0]+a[1]))
        except EOFError:
                break import math math while True:
        try:
                a =map(int,raw_input().split())
                b = a[0] + a[1]
                print len(str(a[0]+a[1]))
        except EOFError:
                break True try:
                a =map(int,raw_input().split())
                b = a[0] + a[1]
                print len(str(a[0]+a[1]))
        except EOFError:
                break except EOFError:
                break break a =map(int,raw_input().split()) a map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split b = a[0] + a[1] b a[0] + a[1] a[0] a 0 a[1] a 1 print len(str(a[0]+a[1])) len str(a[0]+a[1]) str a[0]+a[1] a[0] a 0 a[1] a 1 b = a[0] + a[1] a[0] + a[1] b a =map(int,raw_input().split()) map(int,raw_input().split()) a
import math
while True:
        try:
                a =map(int,raw_input().split())
                b = a[0] + a[1]
                print len(str(a[0]+a[1]))
        except EOFError:
                break