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

int main() {
    int a, b;
    while (scanf("%d %d",&a,&b)!=EOF) {
        a+=b;
        int ans=0;
        while (a>0) {
            a/=10;
            ans++;
        }
        printf("%d\n",ans);
    }
    return 0;
}