import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count =0; count 0 while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		} sc.hasNext() && count < 201 sc.hasNext() sc.hasNext sc count < 201 count 201 {
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		} String a = sc.nextLine(); a sc.nextLine() sc.nextLine sc String[] array = a.split(" "); array a.split(" ") a.split a " " int x = Integer.parseInt(array[0]); x Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int y = Integer.parseInt(array[1]); y Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int val = x+y; val x+y x y int valLen = String.valueOf( val ).length(); valLen String.valueOf( val ).length() String.valueOf( val ).length String.valueOf( val ) String.valueOf String val System.out.println(valLen) System.out.println System.out System System.out valLen count++ count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count =0;
		
		while(sc.hasNext() && count < 201){
			
				String a = sc.nextLine();
	            String[] array = a.split(" ");
				int x = Integer.parseInt(array[0]);
				int y = Integer.parseInt(array[1]);
				int val = x+y;
				int valLen = String.valueOf( val ).length();
				System.out.println(valLen);
			
				count++;
			
		}
	}
}