import java.util.Scanner;

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

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