while True:
    try:
        x,y=[int(i) for i in input().split()]
        print(len(str(x+y)))
    except:
        break; while True:
    try:
        x,y=[int(i) for i in input().split()]
        print(len(str(x+y)))
    except:
        break; True try:
        x,y=[int(i) for i in input().split()]
        print(len(str(x+y)))
    except:
        break; except:
        break; break int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x,y=[int(i) for i in input().split()] x [int(i) for i in input().split()] y print(len(str(x+y))) print len(str(x+y)) len str(x+y) str x+y x y y=[int(i) for i in input().split()] [int(i) for i in input().split()] y x,y=[int(i) for i in input().split()] [int(i) for i in input().split()] x
while True:
    try:
        x,y=[int(i) for i in input().split()]
        print(len(str(x+y)))
    except:
        break;