import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    } main {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        } s.hasNext() s.hasNext s {
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        } int a = s.nextInt()+s.nextInt(); a s.nextInt()+s.nextInt() s.nextInt() s.nextInt s s.nextInt() s.nextInt s System.out.println(Integer.toString(a).length()) System.out.println System.out System System.out Integer.toString(a).length() Integer.toString(a).length Integer.toString(a) Integer.toString Integer a String[] args args public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()){
            int a = s.nextInt()+s.nextInt();
            System.out.println(Integer.toString(a).length());           
        }
    }
}