import java.util.Scanner;

class Main{
  public static void main(String[] args){
    String[] data;
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    String[] data;
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    }
  }
} Main public static void main(String[] args){
    String[] data;
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    }
  } main {
    String[] data;
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    }
  } String[] data; data Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    } sc.hasNext() sc.hasNext sc {
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    } data = sc.nextLine().split(" ") data sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]); digit Integer.parseInt(data[0]) + Integer.parseInt(data[1]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 System.out.println("" + Integer.toString(digit).length()) System.out.println System.out System System.out "" + Integer.toString(digit).length() "" Integer.toString(digit).length() Integer.toString(digit).length Integer.toString(digit) Integer.toString Integer digit String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    String[] data;
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()){
      data = sc.nextLine().split(" ");
      int digit = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
      System.out.println("" + Integer.toString(digit).length());
    }
  }
}