#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF){
		int ans = 0; a += b;
		while(a / 10 != 0){
			ans++;
			a /= 10;
		}
		ans++;
		cout << ans << endl;
	}
}