#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int a,b;
    while(scanf("%d%d",&a,&b) != EOF)
    {
          int x = a+b;
          int count = 0;
          while(x != 0)
          {
                  x = x /10;
                  count ++;
          }
          printf("%d\n",count);
    }

    
    system("PAUSE");
    return EXIT_SUCCESS;
}