import java.util.Scanner;


public class Main {

	static Scanner sc = new Scanner(System.in);
	static int sum;

	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}

	public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	}


	public static void solve(){
		System.out.println(Integer.toString(sum).length());
	}

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

	static Scanner sc = new Scanner(System.in);
	static int sum;

	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}

	public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	}


	public static void solve(){
		System.out.println(Integer.toString(sum).length());
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int sum; sum public static void main(String[] args) {
		while(read()){
			solve();
		}
	} main {
		while(read()){
			solve();
		}
	} while(read()){
			solve();
		} read() read {
			solve();
		} solve() solve String[] args args public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	} read {
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	} if(!sc.hasNextInt())  return false; !sc.hasNextInt() sc.hasNextInt() sc.hasNextInt sc return false; false sum = sc.nextInt() sum sc.nextInt() sc.nextInt sc sum += sc.nextInt() sum sc.nextInt() sc.nextInt sc return true; true public static void solve(){
		System.out.println(Integer.toString(sum).length());
	} solve {
		System.out.println(Integer.toString(sum).length());
	} System.out.println(Integer.toString(sum).length()) System.out.println System.out System System.out Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum public class Main {

	static Scanner sc = new Scanner(System.in);
	static int sum;

	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}

	public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	}


	public static void solve(){
		System.out.println(Integer.toString(sum).length());
	}

} public class Main {

	static Scanner sc = new Scanner(System.in);
	static int sum;

	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}

	public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	}


	public static void solve(){
		System.out.println(Integer.toString(sum).length());
	}

} Main
import java.util.Scanner;


public class Main {

	static Scanner sc = new Scanner(System.in);
	static int sum;

	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}

	public static Boolean read(){
		if(!sc.hasNextInt())  return false;

		sum = sc.nextInt();
		sum += sc.nextInt();
		return true;
	}


	public static void solve(){
		System.out.println(Integer.toString(sum).length());
	}

}