#include<iostream>
#include<cstdio>
#include<vector>
#include <algorithm>
#include <functional>
#include<cmath>

using namespace std;

int main(){
	int a,b;
	
	while(cin>>a>>b)
	{
		a = a+b;
		a = (int)log10(a)+1;
		cout << a << endl;
	}

	return 0;
}