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