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();
            System.out.println(("" + (a+b)).length());
        }
    }
} 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();
            System.out.println(("" + (a+b)).length());
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(("" + (a+b)).length());
        }
    } main {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(("" + (a+b)).length());
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) while(in.hasNext()){
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(("" + (a+b)).length());
        } in.hasNext() in.hasNext in {
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(("" + (a+b)).length());
        } int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in System.out.println(("" + (a+b)).length()) System.out.println System.out System System.out ("" + (a+b)).length() ("" + (a+b)).length ("" + (a+b)) "" (a+b) a b 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();
            System.out.println(("" + (a+b)).length());
        }
    }
} 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();
            System.out.println(("" + (a+b)).length());
        }
    }
} 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();
            System.out.println(("" + (a+b)).length());
        }
    }
}