import java.util.Scanner;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    }
}  import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a; a int b; b int sum; sum int digits = 0; digits 0 List<Integer> list = new ArrayList<>(); list new ArrayList<>() while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        } sc.hasNext() sc.hasNext sc {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        } a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc sum = a + b sum a + b a b digits = 0 digits 0 for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                } ; sum>=1 sum 1 sum=sum/10 sum=sum/10 sum sum/10 sum 10 {
            	digits = digits+1;
                } {
            	digits = digits+1;
                } digits = digits+1 digits digits+1 digits 1 list.add(digits) list.add list digits for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        } Iterator it = list.iterator(); Iterator it = list.iterator(); it list.iterator() list.iterator list it.hasNext() it.hasNext it {
            System.out.println(it.next());
        } {
            System.out.println(it.next());
        } System.out.println(it.next()) System.out.println System.out System System.out it.next() it.next it sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a;
        int b;
        int sum;
        int digits = 0;
        List<Integer> list = new ArrayList<>();
       
        while(sc.hasNext()) {
        	a = sc.nextInt();
        	b = sc.nextInt();
        	sum = a + b;
        	digits = 0;
        	//System.out.println(sum);
        	for(;sum>=1;sum=sum/10) {
            	digits = digits+1;
                }
            //System.out.println(digits);
        	list.add(digits);
        }
               
        for(Iterator it = list.iterator(); it.hasNext();) {
            System.out.println(it.next());
        }

        sc.close();
    }
} 