#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int sum,a,b;
	while(cin>>a>>b){
		int count=1;
		sum=a+b;
		while(sum>=10){
			sum/=10;
			count++;
		}
		cout<<count<<endl;
	}
	return 0;
}