#include<iostream>
using namespace std;

int main(){
	for (int m=0;m<=200;m++){
	int a,b,c,i;
	i = 1;
	cin >> a  >> b;
	c = a + b;
	while(c/10!=0){
		i++;
		c = c/10;
	}
	cout << i <<endl;
	}
		
    return 0;
}