import java.util.Scanner;

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(String.valueOf(sum).length());
        }
        sc.close();
    }
} import java.util.Scanner; Scanner 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(String.valueOf(sum).length());
        }
        sc.close();
    }
} 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(String.valueOf(sum).length());
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            int sum=sc.nextInt()+sc.nextInt();
            System.out.println(String.valueOf(sum).length());
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()) {
            int sum=sc.nextInt()+sc.nextInt();
            System.out.println(String.valueOf(sum).length());
        } sc.hasNext() sc.hasNext sc {
            int sum=sc.nextInt()+sc.nextInt();
            System.out.println(String.valueOf(sum).length());
        } int sum=sc.nextInt()+sc.nextInt(); sum sc.nextInt()+sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc System.out.println(String.valueOf(sum).length()) System.out.println System.out System System.out String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum sc.close() sc.close sc 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(String.valueOf(sum).length());
        }
        sc.close();
    }
} 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(String.valueOf(sum).length());
        }
        sc.close();
    }
} Main
import java.util.Scanner;

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(String.valueOf(sum).length());
        }
        sc.close();
    }
}
