#include <iostream>

using namespace std;

typedef long long ll;

int main(){

	ll a,b;
	while(1){
		cin >> a >> b;
		if(cin.eof()){
			break;
		}
		ll sum = a + b;
		int cnt = 1;
		while(sum / 10){
			sum/=10;
			cnt++;
		}
		cout << cnt << endl;
	}

	return 0;
}