#include <iostream>
#include <cmath>
using namespace std;

int unsignedGeddigit(int a){
	return log10(a)+1;
}

int main(){
	int a,b,x;
	while(cin>>a>>b){
		cout<<unsignedGeddigit(a)+unsignedGeddigit(b)<<endl;
	}

	return 0;
}