#include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b;
	while(cin >> a >> b){
		int sum; sum = a + b;
		int cnt = 0;
		while(sum!=0){
		sum /=10;
		cnt++;
		}
		cout << cnt << endl;
	}
	return 0;
}