#include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int main()
{
	int a, b;
	cin >> a >> b;
	a = a + b;
	int count = 0;
	while (a > 0) {
		a /= 10;
		count++;
	}
	printf("%d\n", count);
}