import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  } main {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    } sc.hasNext() sc.hasNext sc {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    } int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc System.out.println(Integer.toString(l+r).length()) System.out.println System.out System System.out Integer.toString(l+r).length() Integer.toString(l+r).length Integer.toString(l+r) Integer.toString Integer l+r l r String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int l = sc.nextInt();
      int r = sc.nextInt();
      System.out.println(Integer.toString(l+r).length());
    }
  }
}