#include <iostream>
#include<string>
#include<math.h>
#include<stdio.h>
#include <algorithm>
using namespace std;
int main(void){
    // Here your code !

int a,b,n;
while(cin>>a>>b){

n=a+b;
n=log10(n)+1;

cout<<n<<endl;
}
return 0;
}