#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main () {
	int a,b;
	while(cin >> a >> b){
		int i = a + b;
		int n = 0;
		//cout << i / 10 << endl;
		while(i != 0){
			i /= 10;
			n++;
		}
		cout << n << endl;
	}

}
