import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String inData;
            while ((inData = scan.nextLine()) != null) {
                String[] inDataList = inData.split(" ");
                int sum = Integer.parseInt(inDataList[0]) + Integer.parseInt(inDataList[1]);
                System.out.println(String.valueOf(sum).length());
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

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

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String inData;
            while ((inData = scan.nextLine()) != null) {
                String[] inDataList = inData.split(" ");
                int sum = Integer.parseInt(inDataList[0]) + Integer.parseInt(inDataList[1]);
                System.out.println(String.valueOf(sum).length());
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String inData;
            while ((inData = scan.nextLine()) != null) {
                String[] inDataList = inData.split(" ");
                int sum = Integer.parseInt(inDataList[0]) + Integer.parseInt(inDataList[1]);
                System.out.println(String.valueOf(sum).length());
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
}