#include<iostream>
using namespace std;

int main() {
	while (1) {
		int i,a, b, c;
		cin >> a >> b;
		c = a + b;
		for (i = 0; c != 0; i++) {
			c /= 10;
		}
		if (i == 0)
			i = 1;
		cout << i << "\n";
 	}
	
	return 0;
}
