#include<iostream>
using namespace std;

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