#include<iostream>
#include <algorithm>
using namespace std;

int main(){
	int a, b, num, i = 1;
	cin >> a >> b;
	num = a*b;
	while(1){
		if(num < 10) break;
		i++;
		num /= 10;
	}
	cout << i << endl;
    return 0;
}