#include <iostream>

using namespace std;

int main(){
	int a, b, c, i;
	int number = 1;

	cin >> a >> b;
	c = a+b;

	for(i=0; i++){
		if(c/10 != 0){
			number = number + 1;
		}
		else{
			break;
		}

		cout << number << endl;
	}
}