// 0002.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		int ans = 0;
		int c = a + b;
		while (c > 0) {
			c /=(int) 10; ans += 1;
		}cout<<ans<<endl;
	}
	return 0;

}