import java.util.Scanner;

class Main {
    private static void solve() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(String.valueOf(a + b).length());
        }
    }

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

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

class Main {
    private static void solve() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(String.valueOf(a + b).length());
        }
    }

    public static void main(String... args) {
        solve();
    }
}