#include <iostream>
using namespace std;

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