/*
AOJ_0002_DigitNumber

EOFはWindowsはCtrl+Z,UNIXはCtrl+D

*/

#include <iostream>
#include <string>
#include <cstdio>
#include <math.h>

using namespace std;

int main() {
	int a, b;

	//while (scanf("%d %d", &a, &b) != EOF){
	while (cin >> a >> b){
		cout << (int)log10(a + b) + 1 << endl;
	}
	return 0;
}