#include <cstdio>
#include <iostream>
#include <algorithm>

using namespace std;

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