#include<math.h>
#include<iostream>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define INF (1<<30)

using namespace std;


int main(){
	int a,b,i,j,k,n;
	
	while(!cin.eof()){
		cin>>a>>b;
		k=0,n=a+b;
		while(n>0){
			n/=10;
			++k;
		}
		cout<<k<<endl;
	}
}