import java.util.Scanner;

public class Main {

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    }

    static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    }

} import java.util.Scanner; Scanner java.util public class Main {

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    }

    static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    }

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int sum = 0; sum 0 while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        } scanner.hasNextInt() scanner.hasNextInt scanner {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(getDigit(a + b)) System.out.println System.out System System.out getDigit(a + b) getDigit a + b a b String[] args args static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    } getDigit {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    } if (value == 0) { return 1; } value == 0 value 0 { return 1; } return 1; 1 int digit = 0; digit 0 while (value > 0) {
            value /= 10;
            digit++;
        } value > 0 value 0 {
            value /= 10;
            digit++;
        } value /= 10 value 10 digit++ digit return digit; digit int value value public class Main {

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    }

    static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    }

} public class Main {

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    }

    static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    }

} Main
import java.util.Scanner;

public class Main {

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

        int sum = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(getDigit(a + b));
        }
    }

    static int getDigit(int value) {
        if (value == 0) { return 1; }

        int digit = 0;

        while (value > 0) {
            value /= 10;
            digit++;
        }

        return digit;
    }

}