/* Volume2 */
import java.io.*;

class Main
{
  final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE };

  public static int stringSize(int x){
    for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    }
  }

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
} import java.io.*; io.* java class Main
{
  final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE };

  public static int stringSize(int x){
    for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    }
  }

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
} Main final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE }; sizeTable { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE } 9 99 999 9999 99999 999999 9999999 99999999 999999999 Integer.MAX_VALUE Integer Integer.MAX_VALUE public static int stringSize(int x){
    for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    }
  } stringSize {
    for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    }
  } for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    } int i=0; int i=0; i 0 i++ i++ i {
      if(x <= sizeTable[i]) return i+1;
    } {
      if(x <= sizeTable[i]) return i+1;
    } if(x <= sizeTable[i]) return i+1; x <= sizeTable[i] x sizeTable[i] sizeTable i return i+1; i+1 i 1 int x x public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  } main {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  } try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    } catch(Exception e){
      System.out.println(e);
    } Exception e {
      System.out.println(e);
    } System.out.println(e) System.out.println System.out System System.out e {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String str = ""; str "" while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      } String[] input = str.split(" "); input str.split(" ") str.split str " " int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]); sum Integer.parseInt(input[0]) + Integer.parseInt(input[1]) Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 sb.append(stringSize(sum)).append("\n") sb.append(stringSize(sum)).append sb.append(stringSize(sum)) sb.append sb stringSize(sum) stringSize sum "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args
/* Volume2 */
import java.io.*;

class Main
{
  final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE };

  public static int stringSize(int x){
    for(int i=0; ; i++){
      if(x <= sizeTable[i]) return i+1;
    }
  }

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      String str = "";

      while((str = br.readLine()) != null){
        String[] input = str.split(" ");
        int sum = Integer.parseInt(input[0]) + Integer.parseInt(input[1]);
        sb.append(stringSize(sum)).append("\n");
      }
      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
}