#include<iostream>
using namespace std;

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