#include <iostream>
#include <fstream>
using namespace std;

int main(int argc, char* argv[])
{
	ifstream fin(argv[1]);
	int a,b;
	int count;
	int wa;
	while(!fin.eof()){
		fin >> a >> b;
		count = 1;
		wa = a + b;
		while(wa/10 != 0){
			count++;
			wa /= 10;
		}
		cout << count << endl;
	}
	return 0;
}