#include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	int i, j, l;
	int aa, ab,ac,ad,ae,af,ag;
	double ba, bb, bc;
	char ca, cb, cc;
////////////////////////////////////////////////////////
	
	while (scanf("%d",&aa) != EOF && scanf("%d", &ab) != EOF) {
		ac = aa + ab;
		ad = 0;
		while (ac) {
			ac = ac / 10;
			ad++;
		}
		cout << ad<<"\n";

	}
	return 0;

}

