
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <stack>
#include <cctype>
#include <complex>
#include <vector>
#include <algorithm>

using namespace std;


bool solve(int &a, int &b){

	//cout<< a<< " "<< b<<endl;
	int c = a+b;
	int d = 0;
	while(c){
		c /= 10;
		d++;
	}
	cout<< d<< endl;
	
	return true;
}

int main(){
	cout.setf(ios::fixed);
	cout.precision(10);
	int a=0,b=0;
	while(cin>>a>>b){
		solve(a,b);
	}

	return 0;
}

 