#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		int cnt=0;
		int c=a+b;
		while(c){
			c/=10;
			cnt++;
		}
		printf("%d\n",cnt);
	}
	return 0;
}