import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	} main {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		} scanner.hasNext() scanner.hasNext scanner {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int x =a + b; x a + b a b String y = Integer.toString(x); y Integer.toString(x) Integer.toString Integer x System.out.println(y.length()) System.out.println System.out System System.out y.length() y.length y String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		
		while(scanner.hasNext()){
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int x =a + b;
			String y = Integer.toString(x);
			System.out.println(y.length());
		}

	}
}