#include<iostream>
#include<cstdio>
using namespace std;
int main() {
	unsigned int a, b, i = 0;
	while (scanf_s("%d %d", &a, &b)!=EOF){
		a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
	cout << i + 1 << endl;
	i = 0;
}
		return 0;
}