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


int main(){

	int a, b;
	
	while( cin >> a >> b){
		double x = 0;
		for(; a+b >= pow(10,x);x += 1){
		}
		cout << x << '\n';

	}
	return 0;
}