import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(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 result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        } scanner.hasNext() scanner.hasNext scanner {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        } int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next()); result Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next()) Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int length = String.valueOf(result).length(); length String.valueOf(result).length() String.valueOf(result).length String.valueOf(result) String.valueOf String result System.out.println(length) System.out.println System.out System System.out length String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(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 result = Integer.parseInt(scanner.next()) + Integer.parseInt(scanner.next());
            int length = String.valueOf(result).length();
            System.out.println(length);
        }
    }
}