#include <iostream>
#include <algorithm>
#include <set>
#include <vector>
#include <sstream>
#include <typeinfo>

using namespace std;

int main() {
	int a, b, c = 0;
	cin >> a >> b;
	a += b;
	while (a) {
		c++;
		a /= 10;
	}
	cout << c << endl;
	return 0;
}