import java.util.Scanner;

public class Main {

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

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    } main {
        Scanner in = new Scanner(System.in);

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        } in.hasNext() in.hasNext in {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        } int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int k = (int)Math.log10( (double)(a+b) )+1; k (int)Math.log10( (double)(a+b) )+1 (int)Math.log10( (double)(a+b) ) Math.log10 Math (double)(a+b) a b 1 System.out.println(k) System.out.println System.out System System.out k String[] args args public class Main {

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

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    }
} public class Main {

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

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    }
} Main
import java.util.Scanner;

public class Main {

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

        while (in.hasNext()) {
            int a = in.nextInt();
            int b = in.nextInt();
            int k = (int)Math.log10( (double)(a+b) )+1;
            System.out.println(k);
        }
    }
}