import java.util.*;

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

public class Main {
    public static void main(String[] args) {    
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int sum = sc.nextInt() + sc.nextInt();
            System.out.println((int)Math.log10(sum)+1);
        }
    }
}