import java.util.*;

class Main{
    public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    }
} Main public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    } main {
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    } ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        } sc.hasNext() sc.hasNext sc {
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        } list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length()) list.add list String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length() String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())) String.format String "%d" Math.abs(sc.nextInt() + sc.nextInt()) Math.abs Math sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        } int i = 0,size = list.size(); int i = 0 i 0 size = list.size(); size list.size() list.size list i < size i size i++ i++ i {
            System.out.println(list.get(i));
        } {
            System.out.println(list.get(i));
        } System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        ArrayList<Integer> list = new ArrayList<Integer>();
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            list.add(String.format("%d",Math.abs(sc.nextInt() + sc.nextInt())).length());
        }
        for(int i = 0,size = list.size();i < size;i++){
            System.out.println(list.get(i));
        }
    }
}