# include <iostream>
using namespace std;
int main(){
	int a, b;
	int sum=0;
	int n = 0;
	cout << "Enter two numbers:  ";
	cin >> a >> b;
	sum = a + b;
	while (sum>=1)
	{
		++n;
		sum /= 10;
	}
	cout << n << endl;
	return 0;
	/*Javad SHeybani*/
}