#include<iostream>
using namespace std;
int main(){
  int x,y;
  while(cin >>x>>y){
    int c = x+y;
    for(int i=1;;i++){
      c/=10;
      if(c == 0){cout <<i<<endl;break;}
    }
  }
  return 0;
}