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

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