import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
	    	Scanner in = new Scanner(System.in);
	    	
	    	while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	}
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
	    	Scanner in = new Scanner(System.in);
	    	
	    	while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	}
    }
} Main public static void main(String[] args) throws IOException {
	    	Scanner in = new Scanner(System.in);
	    	
	    	while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	}
    } main {
	    	Scanner in = new Scanner(System.in);
	    	
	    	while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	}
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	} in.hasNextInt() in.hasNextInt in {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	} int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in a += b a b int numDigit = String.valueOf(a).length(); numDigit String.valueOf(a).length() String.valueOf(a).length String.valueOf(a) String.valueOf String a System.out.println(numDigit) System.out.println System.out System System.out numDigit String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
	    	Scanner in = new Scanner(System.in);
	    	
	    	while(in.hasNextInt()) {
	    		int a = in.nextInt();
	    		int b = in.nextInt();
	    		a += b;
	    		int numDigit = String.valueOf(a).length();
	    		System.out.println(numDigit);
	    	}
    }
}