/*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by charis
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}