#include <bits/stdc++.h>
using namespace std;

int main() {
	ios_base::sync_with_stdio( false );

	int a, b;
	while( (cin >> a) && (cin >> b) ) {
		int x = a+b;
		int dg = 1;

		while( (x /= 10) > 0 ) {
			dg += 1;
		}

		cout << dg << endl;
	}
}

