#include <iostream>
using namespace std;


int main(){
	int a;
	int b;
	int c;
	int f = 1;

	cin >> a >> b;

	c = a + b;

	while(1){
		c = c / 10;

		if(c <= 0){
			break;
		}
		++f;
	}

	cout << f;

	return 0;
}