
//Digit Number
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        
        int digit[] = new int[200];
        
        int i = 0;
        for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        }
        //System.out.println("i="+i);
        for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        
        int digit[] = new int[200];
        
        int i = 0;
        for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        }
        //System.out.println("i="+i);
        for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        }
    }
} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        
        int digit[] = new int[200];
        
        int i = 0;
        for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        }
        //System.out.println("i="+i);
        for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        }
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        
        int digit[] = new int[200];
        
        int i = 0;
        for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        }
        //System.out.println("i="+i);
        for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        }
    } @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int digit[] = new int[200]; digit new int[200] 200 int i = 0; i 0 for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        } ; sc.hasNextInt() sc.hasNextInt sc i++ i++ i {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int sub = a+b; sub a+b a b digit[i] = String.valueOf(sub).length() digit[i] digit i String.valueOf(sub).length() String.valueOf(sub).length String.valueOf(sub) String.valueOf String sub for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        } int j=0; int j=0; j 0 j<i j i j++ j++ j {
            System.out.println(digit[j]);
        } {
            System.out.println(digit[j]);
        } System.out.println(digit[j]) System.out.println System.out System System.out digit[j] digit j String[] args args

//Digit Number
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        
        int digit[] = new int[200];
        
        int i = 0;
        for(; sc.hasNextInt(); i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int sub = a+b;
            digit[i] = String.valueOf(sub).length();
            //System.out.println("digit="+digit[i]);
        }
        //System.out.println("i="+i);
        for(int j=0; j<i; j++) {
            System.out.println(digit[j]);
        }
    }
}