#include <stdio.h>
#include<iostream>
#include<math.h>
int uncoo(int n){
 return (int)(logf((float)n)/logf(10.0))+1;
}
int main(){
	using namespace std;
	int unco[200],temp,i;
	for(i=0;i<200;i++){
		if(!(cin>>unco[i]))break;
		cin>>temp;
		unco[i]+=temp;
	}
	for(int j=0;j<i;j++){
		cout<<uncoo(unco[j])<<endl;
	}
	return 0;
}