#include<iostream>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define L(_i,_N) for(int _i=0;_i<_N;_i++)
typedef long long int lli;
using namespace std;

int main() {
	int a, b;
	while (cin >> a >> b) {
		int Count = 0;
		a += b;
		while (a > 0) {
			a /= 10;
			Count++;
		}
		cout << Count << endl;
	}
	return 0;
}