#include <iostream>
using namespace std;

int main() {

  long long int a,b;

  while ( cin >> a >> b ) {

    long long int k = a+b;

    for ( int i = 1; true; i++ ) {
      if ( k < 10 ) {
	cout << i << endl;
	break;
      }
      k /= 10;
    }

  }

  return 0;

}