#include <iostream>
#include <vector>
#include <math.h>
using namespace std;

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

	while(cin >> n >> m) {
		v.push_back(n + m);
	}

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

	return 0;
}