#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int a,b,s,i,n;
	for(i=0;i<200;i++){
	cin >> a >> b;
	n=0;
	s=a+b;
	while(s!=0){
	s/=10;
	n++;
	}
	cout << n << endl;
	}
	return 0;
}