import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    }
    static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    }
    static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    }
} Main public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    } main {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b; b String[] input; input while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	} scan.hasNext() scan.hasNext scan {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	} input = scan.nextLine().split(" ") input scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " a = Integer.parseInt(input[0]) a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 b = Integer.parseInt(input[1]) b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 System.out.println(determineDigits(a+b)) System.out.println System.out System System.out determineDigits(a+b) determineDigits a+b a b String[] args args static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    } determineDigits {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    } int digits = 0; digits 0 while (a > 0) {
	    digits ++;
	    a /= 10;
	} a > 0 a 0 {
	    digits ++;
	    a /= 10;
	} digits ++ digits a /= 10 a 10 return digits; digits int a a public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    }
    static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    }
} public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    }
    static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner(System.in);
	int a, b;
	String[] input;
	while (scan.hasNext()) {
	    input = scan.nextLine().split(" ");
	    a = Integer.parseInt(input[0]);
	    b = Integer.parseInt(input[1]);
	    System.out.println(determineDigits(a+b));
	}
    }
    static int determineDigits (int a) {
	int digits = 0;
	while (a > 0) {
	    digits ++;
	    a /= 10;
	}
	return digits;
    }
}