#include<iostream>
#include<algorithm>

using namespace std;

long int a, b;
long int sum,ans;

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