#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define N 200
int main(int argc, const char * argv[])
{
    double x1=0;
    double x2=0;
    //int a[N][2];
    //int b[N];
    while(scanf("%lf",&x1) != EOF){
        scanf("%lf",&x2);
        int y=x1+x2;
        int z=1;
        y=y*(0.1);
        while(y>=1){
            z++;
            y=y*(0.1);
        }
        
        printf("%d\n",z);
        
    }
}