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


int main(){

	int a,b;
	cin >> a >> b;
	a = a + b;
	cout << (int)log10(a)+1 << endl;

	return 0;
}