#include <iostream>
#include <math.h>
using namespace std;

int main(){
	while(true){
		int i,j;
		cin>>i;
		cin>>j;
		if(cin.eof())
			break;
		i=i+j;
		cout << (int)log10((float)i)+1<<endl;
	}
	return 0;

}