while True:

 try:

  a, b = list(map(int, input().strip().split(" ")));

  print(len(str(a + b)))

 except:

  break;
while True:

 try:

  print(len(str(sum(map(int, input().strip().split(" "))))))

 except:

  break;
while True:
    try:
        a, b = list(map(int, input().strip().split(" ")))
        print(len(str(a + b)))
    except:
        break

while True:
    try:
        print(len(str(sum(map(int, input().strip().split(" "))))))
    except:
        break

-        a, b = list(map(int, input().strip().split(" "))) -        print(len(str(a + b))) +        print(len(str(sum(map(int, input().strip().split(" "))))))