#include <iostream>
#include <vector>

using namespace std;

int main(void) {
	int n, m, sum;
	vector<int> v;

	while (cin >> n >> m){
		int digit = 1;
		sum = n + m;
		while (sum /= 10) {
			digit++;
		}
		v.push_back(digit);
	}

	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}