#include<bits/stdc++.h>
using namespace std;

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