#include<iostream>
using namespace std;

int main(){
	int a[200],b[200];
	int i=0;	
	while(cin >> a[i] >> b[i] ){i++;}

	for (int j=0;j<i;j++){
	int c = a[j] +b[j];
	int s=0;
	while(c/10!=0){
		s++;
		c = c/10;
	}
	cout << s+1 <<endl;
	}
		
    return 0;
}