#include<iostream>
using namespace std;

int main(){
	int a,b;
	int sum,nDigit=1;

	cin >> a >> b;

	sum = a + b;

	while(sum>=10){
		sum=sum/10;
		nDigit++;
	}

	cout << nDigit << endl;

	return 0;
}