#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	for(;;){
		int a,b;
		if(scanf("%d %d",&a,&b) == EOF){break;}
		int c = a+b, count = 0;
		while(c>0){
			c=c/10;
			count++;
		}
		cout <<count<<endl;
	}
	return 0;
}