#include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;





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

		





}