#include<iostream>
#include<stdio.h>
using namespace std;

int main() {
	int a, b, ab, c = 0;


	while (cin >> a >> b) {
		ab = a + b;
		for (ab; ab > 0; ab /= 10) {
			c++;
		}
		cout<<c<<endl;
		c = 0;
	}
	return 0;
}
