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

int main(){
	long int a,b,c,s;
	double r;
	while(cin >> a >> b){
		c = a + b;
		r = log10(c) + 1;
		s = r;
		cout << s << endl;
	}
	return 0;
}