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

int main() {
	int a,b;
	while(true){
	cin >> a;
	if(cin.eof())
		break;
	cin >> b;
	a = a+b;
	int digit=1;
	while(true){
		if(a < 10^digit )
			break;
		else
			digit++;	
	}
	cout << digit << endl;
	
	}
	return 0;

}