#include <iostream>
using namespace std;

int main(){
	int a, b;
	while(cin >> a >> b){
		int x = a + b;
		int digit = 0;
		for(int i = 1; i <= x; i = i * 10) digit++;
		cout << digit << endl;
	}
	return 0;
}