import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        } scanner.hasNext() scanner.hasNext scanner {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner String result = String.valueOf(a+b); result String.valueOf(a+b) String.valueOf String a+b a b System.out.println(result.length()) System.out.println System.out System System.out result.length() result.length result String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            String result = String.valueOf(a+b);
            System.out.println(result.length());
        }
    }
}