#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <cmath>
using namespace std;
int p(int h){
	int j=0;
	while(h){
		h/=10;
		j++;
	}
	return j;
}
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		cout<<p(a+b)<<endl;
	}
	return 0;
}
