#include<iostream>
using namespace std;
int main()
{
  int a,b,sum,count;
  while( cin >> a >> b ){
    count=0;
    sum = a + b;
    while( sum > 0 ){
      count++;
      sum /= 10;
    }
    cout << count << endl;
  }
}