#include <iostream>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <string.h>
#include <deque>
#define REP(i,j,n) for(int i=j;i<n;i++)
#define SORT(x) sort(x.begin(),x.end())

using namespace std;



int main() {
	int a, b, c,count=0;
	while (cin >> a && cin >> b) {
		c = a + b;

		while (c > 0) {
			c /= 10;
			count++;
		}

		cout << count << endl;
		count = 0;
	    
	}
	return 0;
}