#include<iostream>
using namespace std;

int main()
{
	int a,b;
	int i;	
	
	while(cin >> a >> b)
	{
		
		int n = 10;
		int i = 1;
		
		int s = a + b;
		
		while(1){
			double q = s / n;
			if (q == 0){
				cout << i << endl;
				break;
			}
			i++; n*=10;
		}
	}
	
	return 0;
}