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

int main(){
    long long a,b;
    cin >> a >> b;
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;
}
