import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    } main {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        } sc.hasNext() sc.hasNext sc {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int ab = a + b; ab a + b a b String st = ab +""; st ab +"" ab "" System.out.println(st.length()) System.out.println System.out System System.out st.length() st.length st String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int ab = a + b;

            String st = ab +"";
            System.out.println(st.length());
        }
    }
}