import java.util.Scanner;

public class Main {

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

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StringBuilder result = new StringBuilder("");

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        StringBuilder result = new StringBuilder("");

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder result = new StringBuilder(""); result new StringBuilder("") while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        } sc.hasNextInt() sc.hasNextInt sc {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        } if (!result.toString().equals("")) {
                result.append("\n");
            } !result.toString().equals("") result.toString().equals("") result.toString().equals result.toString() result.toString result "" {
                result.append("\n");
            } result.append("\n") result.append result "\n" int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int sum = a + b; sum a + b a b result.append(String.valueOf(sum).length()) result.append result String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum System.out.println(result.toString()) System.out.println System.out System System.out result.toString() result.toString result String[] args args public class Main {

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

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    }
} public class Main {

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

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    }
} Main
import java.util.Scanner;

public class Main {

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

        while(sc.hasNextInt()) {
            if (!result.toString().equals("")) {
                result.append("\n");
            }

            int a = sc.nextInt();
            int b = sc.nextInt();
            int sum = a + b;
            result.append(String.valueOf(sum).length());
        }

        System.out.println(result.toString());
    }
}