#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int a,b;
	while (cin >> a >> b) {
		
		int wa = a + b;
		//判定開始
		int ans = 1;
		while(1) {
			wa = wa/10;
			ans++;
			if (wa<10) break;
		}
		cout << ans << endl;
	}
	return 0;
}