import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    }
} import java.util.*; util.* java public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    }
} Main private static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    } main {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    } while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        } scn.hasNextInt() scn.hasNextInt scn {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        } System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            ) System.out.println System.out System System.out (scn.nextInt() + scn.nextInt() + "").length() (scn.nextInt() + scn.nextInt() + "").length (scn.nextInt() + scn.nextInt() + "") scn.nextInt() + scn.nextInt() + "" scn.nextInt() scn.nextInt scn scn.nextInt() scn.nextInt scn "" String[] args args public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    }
} Main
import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        while(scn.hasNextInt()) {
            System.out.println(
              (scn.nextInt() + scn.nextInt() + "").length()
            );
        }
    }
}