#include<iostream>
using namespace std;

int main(){

	int a,b;
	while(cin >> a >> b){
		int ans = 0;
		a = a + b;

		while(a > 0){
			a = a / 10;
				++ans;
		}
		cout << ans << '\n';
	}
	return 0;
}