#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
//#include<algorithm>
//#include<cmath>
using namespace std;
int main() {
	char bff[10];
	int a, b,c;
	while (cin >> a >> b)
		c = sprintf(bff, "%d", a + b),
		cout << c << endl;
	return 0;
}