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

int getKeta(int num) {
	int result = 0;

	for (;;) {
		result++;
		if (num < 10)break;
		num /= 10;
	}
	return result;
}



int main() {

	int a, b;
	int ans[200];

	for (;;) {
		cin >> a >> b;

		a += b;
		printf("%d\n",getKeta(a));


	}

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