#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int main() {
	int i, a, b, c;
	while (cin >> a >> b) {
		c = a + b;
		for (i = 1; c >= 10; i++) {
			c /= 10;
		}
		printf("%d\n", i);
	}	
		return 0;
}
