#include <stdio.h>

int main(void){
  int a,b,work;
  int i,digit = 0;

  while(i=200){

    printf("input a b\n");
    scanf("%d%d",&a,&b);

    work = a + b;
    while (work!=0){
      work = work / 10;
      digit++;
    } 

    printf("%d\n",digit);
  
   }

  return 0;
}