import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main
}//class import java.util.*; util.* java public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main
}//class Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main main {
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str; str String[] arr; arr while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      } sc.hasNext() sc.hasNext sc {
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      } str = sc.nextLine() str sc.nextLine() sc.nextLine sc arr = str.split(" ") arr str.split(" ") str.split str " " int a = Integer.parseInt(arr[0]); a Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 int b = Integer.parseInt(arr[1]); b Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 System.out.println((int)Math.log10(a+b)+1) System.out.println System.out System System.out (int)Math.log10(a+b)+1 (int)Math.log10(a+b) Math.log10 Math a+b a b 1 String[] args args public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main
}//class public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main
}//class Main
import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String str;
      String[] arr;
      
      while(sc.hasNext()){
         str = sc.nextLine();
         arr = str.split(" ");
         int a = Integer.parseInt(arr[0]);
         int b = Integer.parseInt(arr[1]);
      
         System.out.println((int)Math.log10(a+b)+1);
      }
   }//main
}//class