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


int main(){

	while(true){
		int a,b;
		cin >> a >> b;
		a = a + b;
		cout << (int)log10(a)+1 << endl;
	}

	return 0;
}