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

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