#include <bits/stdc++.h>
#include <vector>
using namespace std;
int a, b, x, hasil;
int main(){
	while(cin >> a >> b){
		hasil = 0;
		x = a + b;
		while(x >= 1){
			hasil++;
			x = x / 10;
		}
		cout << hasil << "\n";
	}
	return 0;
}