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

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