import java.util.Scanner;

class Main {
    private void digitNumber() {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        }
    }

    public static void main(String[] args) {
        (new Main()).digitNumber();
    }
} import java.util.Scanner; Scanner java.util class Main {
    private void digitNumber() {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        }
    }

    public static void main(String[] args) {
        (new Main()).digitNumber();
    }
} Main private void digitNumber() {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        }
    } digitNumber {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        } sc.hasNext() sc.hasNext sc {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        } int sum = sc.nextInt() + sc.nextInt(); sum sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int c = 0; c 0 while (sum != 0) {
                c++;
                sum /= 10;
            } sum != 0 sum 0 {
                c++;
                sum /= 10;
            } c++ c sum /= 10 sum 10 System.out.println(c) System.out.println System.out System System.out c public static void main(String[] args) {
        (new Main()).digitNumber();
    } main {
        (new Main()).digitNumber();
    } (new Main()).digitNumber() (new Main()).digitNumber (new Main()) String[] args args
import java.util.Scanner;

class Main {
    private void digitNumber() {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int sum = sc.nextInt() + sc.nextInt();
            int c = 0;
            while (sum != 0) {
                c++;
                sum /= 10;
            }
            System.out.println(c);
        }
    }

    public static void main(String[] args) {
        (new Main()).digitNumber();
    }
}