import java.io.*;
class Main {
  public static void main(String... args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    }
  }
} import java.io.*; io.* java class Main {
  public static void main(String... args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    }
  }
} Main public static void main(String... args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    } s != null s null {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    } String[] arr = s.split(" "); arr s.split(" ") s.split s " " int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]); sum Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]) Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 System.out.println((int)Math.log10(sum)+1) System.out.println System.out System System.out (int)Math.log10(sum)+1 (int)Math.log10(sum) Math.log10 Math sum 1 s = br.readLine() s br.readLine() br.readLine br String... args args
import java.io.*;
class Main {
  public static void main(String... args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    while(s != null) {
      String[] arr = s.split(" ");
      int sum = Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]);
      System.out.println((int)Math.log10(sum)+1);
      s = br.readLine();
    }
  }
}