#include <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;

int main() {
	int a = 0;
	int b = 0;

 	while (cin >> a >> b) {
 		int sum = a + b;
	
		int i = 0;
		while (sum != 0) {
			sum /= 10;
			i++;
		}
		cout << i << endl;
 	}

	return 0;
}