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

int main(){

	int a,b,s,d;
	while(cin>>a>>b)
	{		
		s = a + b;
		d = 0;
		{
			while(s)
			{
				s /= 10;
				d ++;
			}
			cout<<d<<endl;
		}
	}

return 0;
}