
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		} stdIn.hasNextInt() stdIn.hasNextInt stdIn {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		} int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int i = stdIn.nextInt(); i stdIn.nextInt() stdIn.nextInt stdIn int cou = 0; cou 0 int ni=n+i; ni n+i n i while(ni>0){
				ni/=10;
				cou++;
			} ni>0 ni 0 {
				ni/=10;
				cou++;
			} ni/=10 ni 10 cou++ cou System.out.println(cou) System.out.println System.out System System.out cou String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		while (stdIn.hasNextInt()) {
			int n = stdIn.nextInt();
			int i = stdIn.nextInt();
			int cou = 0;
			int ni=n+i;
			while(ni>0){
				ni/=10;
				cou++;
			}
			System.out.println(cou);
		}
	}
}