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

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        int sum=a+b;
        long long ans=0;
        while (true) {
            sum/=10;
            ans++;
            if (sum<=0) {
                break;
            }
        }
        printf("%lld\n",ans);
    }
    return 0;
}