#include<iostream>
using namespace std;

int main(){
	int a,b;
	while(cin >> a >> b){
		int ans = a + b;
		int count = 0;
		while(true){
			count++;
			ans /= 10;
			if(ans == 0){
				break;
			}
		}
		cout << count << endl;
	}
}