import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		}
	}
} Main static List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		}
	} main {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		} scan.hasNext() scan.hasNext scan {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		} int sum = (scan.nextInt() + scan.nextInt()); sum (scan.nextInt() + scan.nextInt()) scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan 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
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int sum = (scan.nextInt() + scan.nextInt());
			System.out.println(String.valueOf(sum).length());
		}
	}
}