#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <list>
#include <cmath>
#include <fstream>
#include <queue>
#include <sstream>
#include <algorithm>
#include <cstring>
using namespace std;

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