#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main (int argc, char * const argv[]) {
    // insert code here...
    int a, b, c;
	
	while(cin >> a >> b ){
		c=1;
		a+=b;
		while(a/=10){
			c++;
		}
		cout<<c<<endl;
	}
	return 0;
}