#include<iostream>
using namespace std;

int main(){
	int m,n;
	while(cin >> m >>n)
	{
		int i = m +n;
		
		int count = 0;
		while(i){
				count++;
			i = i/10;
		
		}
		cout << count << endl;
	}
	
    return 0;
	
}