#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
using namespace std;
int main(){
	int a, b;
	while (cin >> a >> b) {
		int hoge = a + b;
		int iFigure;
		hoge = (int)log10(hoge) + 1;

		printf("%d\n", hoge);
	}
}
