import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

} main {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        } scan.hasNext() scan.hasNext scan {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        } String num1 = scan.next(); num1 scan.next() scan.next scan int int1 = Integer.parseInt(num1); int1 Integer.parseInt(num1) Integer.parseInt Integer num1 String num2 = scan.next(); num2 scan.next() scan.next scan int int2 = Integer.parseInt(num2); int2 Integer.parseInt(num2) Integer.parseInt Integer num2 int kei = int1 + int2; kei int1 + int2 int1 int2 int keilen = String.valueOf(kei).length(); keilen String.valueOf(kei).length() String.valueOf(kei).length String.valueOf(kei) String.valueOf String kei System.out.println(keilen) System.out.println System.out System System.out keilen scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		//?????????????????????
	    Scanner scan = new Scanner(System.in);

        while(scan.hasNext()) {
          	    String num1 = scan.next();
	 	int int1 = Integer.parseInt(num1);

	    String num2 = scan.next();
	    int int2 = Integer.parseInt(num2);

	    int kei = int1 + int2;
	    int keilen = String.valueOf(kei).length();
	    System.out.println(keilen);
        }
	    scan.close();

}
}