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

int keta(int num) {
	int result = 1;
	while (true) {

		if (num < 10)return result;

		num /= 10;
		result++;
	}



}

int main() {
	int a, b,c;
	while (cin >> a >> b) {
		printf("%d\n", keta(a + b));

	}
	

	//system("pause");
	return 0;
}
