#include <iostream>
#include<iomanip>

using namespace std;
 int main()
 {
	 
	 int a,b,sum, counter;
	 cin >>a >>b;
	 sum=a+b;
	 counter=0;
	 while (sum!=0)
	 {
		 sum=sum/10;
	counter++;
	 
	 }
	  cout <<counter<<endl;
 }