#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;

int a, b;

int process(){
	int sum = a + b;
	int digit = 1;
	
	while (sum / 10 > 0){
		sum /= 10;
		digit++;
	}
	
	return digit;
}

int main(){
	while (cin >> a >> b){
		cout << process() << endl;
	}
	
	return 0;
}
