#include <iostream>
#include <cstdio>
#define KETAMAX (15)
using namespace std;
int main(void){
    
    int a = 0;
    int b = 0;
    int keta = 0;
    char Dumy[KETAMAX] = {'\0'};
    
    scanf("%d",&a);
    scanf("%d",&b);
        
    keta = sprintf(Dumy,"%d",(a + b));
        
    printf("%d",keta);
        
    return(0);
}