#include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;
	int s = a+b;
	int ans = 0;
	while(s){
		ans++;
		s /= 10;
	}
	if( a+b == 0 ) cout << 1 << endl;
	else cout << ans << endl;
}