#include<iostream>
using namespace std;

int main() {
	int a, b;
	while (cin >> a >> b) {
		double tmp = a + b; int keta = 0;
		while (true) {
			if (tmp < 10)break;
			tmp = tmp / 10;
			keta++;
		}
		cout << keta << endl;
	}
}