#include <iostream>
using namespace std;

int main()
{

	while(true){
		int a,b,sum;
		int count = 0;
	
		cin >> a ;

		if(cin.eof())
			break;
		cin >> b;

		sum = a + b;

		for(int i=1 ;sum!=0 ;i++){

			sum /= 10;
			count = i;
		}

		cout << count << endl;
	}
		
		return 0;
}