#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int a, b, c;
	
	while(cin >> a >> b){
		a += b;
		c = 1;
		for(int i = 10; i <= a;i *= 10, c++);
		cout  << c << endl;
	}
	
	return 0;
}