#include <iostream>
using namespace std;

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