import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	} main {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		} scan.hasNext() scan.hasNext scan {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = a + b; c a + b a b String d = "" + c; d "" + c "" c System.out.println(d.length()) System.out.println System.out System System.out d.length() d.length d String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			
			int a = scan.nextInt();
			int b = scan.nextInt();
			
			int c = a + b;
			String d = "" + c;
			
			System.out.println(d.length());
		}
	}
}