#include <bits/stdc++.h>
using namespace std;

int main() {
	int a[100];
	int i=0;
	int x,y;
	while(cin>>x>>y){
		a[i]=x+y;
		i++;
	}
	for(int j=0;j<i;j++){
		int count=1;
		while(a[j]>=10){
			a[j]=a[j]/10;
			count++;
		}
		cout<<count<<endl;
	}
	// your code goes here
	return 0;
}