#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<cctype>
#include<vector>
#include<queue>
#include<map>
using namespace std;

int main() {
	int a, b;

	while (cin >> a >> b) {
		cout << (int)log10(a + b) + 1 << endl;
	}

	return 0;
}