import static java.lang.System.out;
import static java.lang.Integer.parseInt;
import java.io.File;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().digit();
    }

    public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import java.io.File; File java.io import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        new Main().digit();
    }

    public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    }
} Main public static void main(String[] args) {
        new Main().digit();
    } main {
        new Main().digit();
    } new Main().digit() new Main().digit new Main() String[] args args public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } digit {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            scanDigit(scan);
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) scanDigit(scan) scanDigit scan public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } digit {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            scanDigit(scan);
        } Scanner scan = new Scanner(new File(inDataPath)) Scanner scan = new Scanner(new File(inDataPath)) new Scanner(new File(inDataPath)) scanDigit(scan) scanDigit scan String inDataPath inDataPath public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    } scanDigit {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    } String inData; inData while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        } (inData = scan.nextLine()) != null || !"".equals(inData) (inData = scan.nextLine()) != null (inData = scan.nextLine()) inData scan.nextLine() scan.nextLine scan null !"".equals(inData) "".equals(inData) "".equals "" inData {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        } String[] inDataList = inData.split(" "); inDataList inData.split(" ") inData.split inData " " int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]); sum parseInt(inDataList[0]) + parseInt(inDataList[1]) parseInt(inDataList[0]) parseInt inDataList[0] inDataList 0 parseInt(inDataList[1]) parseInt inDataList[1] inDataList 1 out.println(String.valueOf(sum).length()) out.println out String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum Scanner scan scan public class Main {

    public static void main(String[] args) {
        new Main().digit();
    }

    public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    }
} public class Main {

    public static void main(String[] args) {
        new Main().digit();
    }

    public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    }
} Main
import static java.lang.System.out;
import static java.lang.Integer.parseInt;
import java.io.File;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().digit();
    }

    public void digit() {
        try (Scanner scan = new Scanner(System.in)) {
            scanDigit(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void digit(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            scanDigit(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void scanDigit(Scanner scan) throws Exception {
        String inData;
        while ((inData = scan.nextLine()) != null || !"".equals(inData)) {
            String[] inDataList = inData.split(" ");
            int sum = parseInt(inDataList[0]) + parseInt(inDataList[1]);
            out.println(String.valueOf(sum).length());
        }
    }
}