#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;
int main(){
	while (true) {
		int a, b;
		cin >> a >> b;
		if (cin.eof()) break;
		int sum = a + b;
		int res = 1;
		while (sum >= 10) {
			res ++;
			sum /= 10;
		}
		cout << res << "\n";
	}
    return 0;
}