#include <iostream>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <assert.h>

using namespace std;

#define set 200;
int main()
{

int a,b,sum;
ifstream fin;



 	fin.open("datasets.txt",ios::in);
	assert (!fin.fail( ));
    if (a>=0 || b<=1000000)
	{
     fin >> a >> b;
	while (!fin.eof( ))     
     {
        fin >> a >> b;
        cout << a << "\t" << b <<endl;
		cout << ceil(log10(a+b)) << endl;
	 }

	 fin.close( );
	 

	}
     return 0;


}