import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    String str;
    while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    String str;
    while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    }
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    String str;
    while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    }
  } main {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    String str;
    while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    }
  } BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String str; str while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    } (str = buf.readLine()) != null (str = buf.readLine()) str buf.readLine() buf.readLine buf null {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    } String[] nums = str.split(" "); nums str.split(" ") str.split str " " int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]); sum Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]) Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 Integer.parseInt(nums[1]) Integer.parseInt Integer nums[1] nums 1 System.out.println(Integer.toString(sum).length()) System.out.println System.out System System.out Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    String str;
    while ((str = buf.readLine()) != null) {
      String[] nums = str.split(" ");
      int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
      System.out.println(Integer.toString(sum).length());
    }
  }
}