#include<iostream>
using namespace std;
int main()
	{
		int a = 0, b = 0, sum, result = 0;
		
		while (cin >>a>>b)
		{

			result = 0;
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout <<result<<endl;
		}
		return 0;
}