#include <iostream>
using namespace std;

int main()
{
	int a, b, sum, count;
	
	while(cin >> a >> b){
		sum = a + b;
	}
	
	while(1){
		sum /= 10;
		++count;
		
		if(sum == 0){
			
		cout << count;
		break;
		
		}
	}
	
	return 0;
}