#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <math.h>
#include <utility>

using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)

int main()
{
	int a, b, c, d;
	while (cin >> a >> b)
	{
		int ans;
		c = a + b;
		d = 10;
		FOR(i, 1, 10)
		{
			if (c / d == 0) break;
			d *= 10;
			ans = i;
		}
		cout << ans + 1 << endl;
	}
	return 0;
}