#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
	int a,b,c,count = 0;
	char dummy[10];
	
	cin >> a >> b;
	c  = a + b;
	
	count = sprintf(dummy,"%d",c);
	
	cout << count;
	
	return 0;
}