import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	}
} Main public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	} main {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	} Scanner sc; sc int a=0; a 0 int b=0; b 0 int kotae=0; kotae 0 int i=0; i 0 sc = new Scanner(System.in) sc new Scanner(System.in) while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		} sc.hasNext() sc.hasNext sc {

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc kotae = a + b kotae a + b a b String skotae = String.valueOf(kotae); skotae String.valueOf(kotae) String.valueOf String kotae int keta = skotae.length(); keta skotae.length() skotae.length skotae System.out.println(keta) System.out.println System.out System System.out keta if(i >= 200){
				break;
			} i >= 200 i 200 {
				break;
			} break; i= i+1 i i+1 i 1 String[] args args public class Main {
	public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	}
} public class Main {
	public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		//??????????????°
		Scanner sc;		//??\???
		int a=0;
		int b=0;
		int kotae=0;
		int i=0;

		sc = new Scanner(System.in);

		while(sc.hasNext()){

			a = sc.nextInt();
			b = sc.nextInt();
			kotae = a + b;

			String skotae = String.valueOf(kotae);
			int keta = skotae.length();

			System.out.println(keta);

			if(i >= 200){
				break;
			}
			i= i+1;
		}
	}
}