#include<iostream>
using namespace std;


int main()
{
	int a, b, i;
	while (cin >> a >> b) {
		i = 0;
		int j = a + b;
			while (j > 0) {
			i++;
			j = j / 10;
		}
			cout << i << endl;
	}
    return 0;
}
