import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    } 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( (int)Math.floor( Math.log10(a+b) ) + 1 );
        } scanner.hasNextInt() scanner.hasNextInt scanner {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 ) System.out.println System.out System System.out (int)Math.floor( Math.log10(a+b) ) + 1 (int)Math.floor( Math.log10(a+b) ) Math.floor Math Math.log10(a+b) Math.log10 Math a+b a b 1 String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 );
        }
    }
}