#include<iostream>
#include<string>
using namespace std;

int main()
{
	long int a,b;
	
	while(cin >> a >> b){
		long int sum= a + b;
		int c=1;
		while(sum/=10)c++;
		cout << c << endl;
	}
	return 0;
}