#define _USE_MATH_DEFINES
#include <iostream> 
#include <string>
#include <map>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int a, b, ans;
	cin >> a >> b;
	ans = log10(a+b) + 1;
	cout << ans << endl;
	return 0;
}
