#include <iostream>
using namespace std;

int main()
{

	int i, num1, num2, total=0, digit, result=0;
	
	cout << "Enter an integer : " << endl;
	cin >> num1 >> num2;;
	
	total = num1 + num2;
	
	while(total>0)
	{
	digit = total/10;
	total /= 10;
	result++;	
	};
	
	cout << result << endl;

		
	return 0;
	
	}
	