#include "bits/stdc++.h"
using namespace std;

int main(){
	while(1){
	int a,b;
	cin>>a>>b;
	int n=a+b;
	int ans=0;
	while(n>0){
		n/=10;
		ans++;
	}
	if(ans==0)ans++;
	cout<<ans<<endl;
	}
	return 0;
}