#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
using namespace std;

int main() {
	// your code goes here
	int a,b;
	while(cin >> a >> b){
	cout <<  (int)log10(a+b)+1 << endl;
	}
	return 0;
}