import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    }
} Main public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    } main {
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    } int x x i; i Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        } sc.hasNextInt() sc.hasNextInt sc {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc x +=sc.nextInt() x sc.nextInt() sc.nextInt sc for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            } i = 1; i = 1 i 1 x / 10 > 0 x / 10 x 10 0 i++ i++ i {
                x = x / 10;
            } {
                x = x / 10;
            } x = x / 10 x x / 10 x 10 System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
    public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    }
} public class Main {
    public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        int x,i;
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()) {
            x = sc.nextInt();
            x +=sc.nextInt();
            for (i = 1; x / 10 > 0; i++) {
                x = x / 10;
            }
            System.out.println(i);
        }
    }
}