#include<iostream>
using namespace std;
int main() {
	int a, b,i=0;
	cin >> a >> b;
	a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
		cout << i+1  << endl;
		return 0;
}