#include<iostream>

using namespace std;

int main(){
	
	int a, b, c;
	int count;
	
	for (;cin >> a >> b;){
		c = a + b;
		for(count = 0; c != 0; count++){
			c = c / 10;
		}
		cout << count << endl;
	}
	
	return 0;
}
