import java.util.Scanner;


public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		} sc.hasNextInt() sc.hasNextInt sc {
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		} int a a b = 0; b 0 int di = 1; di 1 a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc a = a+b a a+b a b while(a/10 != 0){
				a /= 10;
				di++;
			} a/10 != 0 a/10 a 10 0 {
				a /= 10;
				di++;
			} a /= 10 a 10 di++ di System.out.println(di) System.out.println System.out System System.out di String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	}
} Main
import java.util.Scanner;


public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			int a, b = 0;
			int di = 1;
			a = sc.nextInt();
			b = sc.nextInt();
			a = a+b;
			while(a/10 != 0){
				a /= 10;
				di++;
			}
			System.out.println(di);
		}
	}
}