import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().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()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        } sc.hasNext() sc.hasNext sc {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        } Integer sum = sc.nextInt() + sc.nextInt(); sum sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc System.out.println(sum.toString().length()) System.out.println System.out System System.out sum.toString().length() sum.toString().length sum.toString() sum.toString sum String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Integer sum = sc.nextInt() + sc.nextInt();
            System.out.println(sum.toString().length());
        }
    }
}