#include <iostream>
using namespace std;

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002

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