#include<iostream>
using namespace std;
int main()
{
	int a,b,z,ans;
	while(1){
		cin >> a >> b ;
		ans = a+b;
		z = 0;
		while(1){
			z++;
			if(ans / 10 == 0){
				break;
			}
			ans = ans / 10;
		}
		cout << z << endl;
	}
	return 0;
}