import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	}
	
	public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	}
	
	public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	}
} Main public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	} main {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	} try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		} {
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			} scanner.hasNext() scanner.hasNext scanner {
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			} int result = digitNumber(scanner.nextInt(), scanner.nextInt()); result digitNumber(scanner.nextInt(), scanner.nextInt()) digitNumber scanner.nextInt() scanner.nextInt scanner scanner.nextInt() scanner.nextInt scanner System.out.println(result) System.out.println System.out System System.out result String[] args args public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	} digitNumber {
		return (""+(a+b)).length();
	} return (""+(a+b)).length(); (""+(a+b)).length() (""+(a+b)).length (""+(a+b)) "" (a+b) a b int a a int b b public class Main {
	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	}
	
	public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	}
} public class Main {
	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	}
	
	public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)){
			while(scanner.hasNext()){
				int result = digitNumber(scanner.nextInt(), scanner.nextInt());
				System.out.println(result);
			}
		}
	}
	
	public static int digitNumber(int a, int b){
		return (""+(a+b)).length();
	}
}