while True:
    try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break while True:
    try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break True try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break except Exception:
        break break a, b = map(int, input().rstrip().split()) a map(int, input().rstrip().split()) map int input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b b = map(int, input().rstrip().split()) map(int, input().rstrip().split()) b a, b = map(int, input().rstrip().split()) map(int, input().rstrip().split()) a
while True:
    try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break
