import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    }
} Main public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    } main {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    } try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      } {
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          } sc.hasNextInt() sc.hasNextInt sc {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int ans = a + b; ans a + b a b int ansLen = String.valueOf(ans).length(); ansLen String.valueOf(ans).length() String.valueOf(ans).length String.valueOf(ans) String.valueOf String ans System.out.println(ansLen) System.out.println System.out System System.out ansLen String[] args args public class Main {
    public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      try (Scanner sc = new Scanner(System.in)){
          while(sc.hasNextInt()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ans = a + b;
            int ansLen = String.valueOf(ans).length();
            System.out.println(ansLen);
          }
      }
    }
}