#include<iostream>
using namespace std;
int main()
{
	int a,b,z,ans;

	cin >> a >> b ;
	ans = a+b;
	z = 0;
	while(1){
		z++;
		if(ans / 10 == 0){
			break;
		}
		ans = ans / 10;
	}

	cout << z;

	return 0;
}