import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} main {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} int x x y; y while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			} scan.hasNext() scan.hasNext scan {
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			} x=scan.nextInt() x scan.nextInt() scan.nextInt scan y=scan.nextInt() y scan.nextInt() scan.nextInt scan System.out.println(Integer.toString(x+y).length()) System.out.println System.out System System.out Integer.toString(x+y).length() Integer.toString(x+y).length Integer.toString(x+y) Integer.toString Integer x+y x y String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int x,y;
			while(scan.hasNext()){
				x=scan.nextInt();
				y=scan.nextInt();
				System.out.println(Integer.toString(x+y).length());
				
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}