import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.ArrayList;
 
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    }
 
    public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    }
 
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    }
 
    public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    }
 
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = ""; input "" while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        } (input = br.readLine()) != null (input = br.readLine()) input br.readLine() br.readLine br null {
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        } String[] arr = input.split(" "); arr input.split(" ") input.split input " " int a = Integer.parseInt(arr[0]); a Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 int b = Integer.parseInt(arr[1]); b Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 int inputAngka = a + b; inputAngka a + b a b System.out.println(count(inputAngka)) System.out.println System.out System System.out count(inputAngka) count inputAngka String[] args args public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    } count {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    } if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        } a < 10 a 10 {
            return 1;
        } return 1; 1 {
            return 1 + count(a / 10);
        } return 1 + count(a / 10); 1 + count(a / 10) 1 count(a / 10) count a / 10 a 10 int a a public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    }
 
    public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    }
 
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    }
 
    public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    }
 
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.ArrayList;
 
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String input = "";
         
        while((input = br.readLine()) != null){
            String[] arr = input.split(" ");
     
            int a = Integer.parseInt(arr[0]);
            int b = Integer.parseInt(arr[1]);
     
            int inputAngka = a + b;
     
            System.out.println(count(inputAngka));
        }
 
    }
 
    public static int count(int a) {
        if (a < 10) {
            return 1;
        } else {
            return 1 + count(a / 10);
        }
    }
 
}