#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#define add push_back
#define inf 2147000000

using namespace std;

int main(void){
	int a,b;
	
	scanf("%d%d",&a,&b);
	
	a+=b;
	
	int i;
	for(i=0;a>=10;i++){
		a/=10;
	}
	cout<<i+1<<endl;
}