#include <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;

int main(void){
	int a,b;
	int i;
	int dig;

	std::cin >> a >> b;
	dig = floor(log((double)a+(double)b));
	std::cout << dig << "\n";
	return 0;
}