import java.util.*;
public class Main {
    public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    }
} Main public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    } main {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    } Scanner inp = new Scanner (System.in); inp new Scanner (System.in) while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        } inp.hasNext() inp.hasNext inp {
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        } int num_1 = inp.nextInt(); num_1 inp.nextInt() inp.nextInt inp int num_2 = inp.nextInt(); num_2 inp.nextInt() inp.nextInt inp int sum = num_1+num_2; sum num_1+num_2 num_1 num_2 int digit = (int)(Math.log10(sum)+1); digit (int)(Math.log10(sum)+1) Math.log10(sum) Math.log10 Math sum 1 System.out.println(digit) System.out.println System.out System System.out digit String[] args args public class Main {
    public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    }
} public class Main {
    public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main (String[] args) {
        Scanner inp = new Scanner (System.in);
        while(inp.hasNext()){
            int num_1 = inp.nextInt();
            int num_2 = inp.nextInt();
            int sum = num_1+num_2;
            int digit = (int)(Math.log10(sum)+1);;
            System.out.println(digit);
        }
    }
}