#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;

int main()
{
	int a, b, sum;

	while( true )
	{
		cin >> a >> b;
		sum = a + b;
		
		char str[10];
		int keta = sprintf( str, "%d", sum );

		cout << keta << endl;
	}
	return 0;
}