#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main(){
  int a,b,ans;
  while(scanf("%d %d",&a,&b)!=EOF){

ans =  log10(a+b)+1;

 cout << ans << endl;
  }
  return 0;
}