#include<iostream>
using namespace std;
int main(){
  int a,b,i;
  int c=a+b;
  int d=0;
  int n;
  1<=n<=200;
  for(int i=i;i<=n;i++)
    cin >> a >> b;
    while(c!=0){
      c=c/10;
      d=d+1;
    }
    cout << d << endl;
  }
}