#include<cstdio>
#include<string>
#include<iostream>
#include<algorithm>
#define _USE_MATH_DEFINES
#include<math.h>
#include<queue>
#include<set>
#include<vector>
#define INF 100000000

#define MAX_N 100
#define MAX_set 200

typedef long long int ll;
using namespace std;


int main(){

	int a,b;

	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", (int)log10((double)a+b) + 1);
	
	}

	return 0;

}