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

int main(void){
	int a,b,dig = 0;
	int sum;
	std::cin >> a >> b;
	sum = a + b;
	while(1){
		if(sum<1) break;
		sum = sum / 10;
		dig++;
	}
	std::cout <<dig;
	return 0;
}