import java.util.StringTokenizer;
import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} import java.util.StringTokenizer; StringTokenizer java.util import java.io.*; io.* java public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		} catch(Exception ex){
			System.exit(0);
		} Exception ex {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		} String input = br.readLine(); input br.readLine() br.readLine br StringTokenizer token; token while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			} input != null input null {
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			} token = new StringTokenizer(input) token new StringTokenizer(input) int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken()); num Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken()) Integer.parseInt(token.nextToken()) Integer.parseInt Integer token.nextToken() token.nextToken token Integer.parseInt(token.nextToken()) Integer.parseInt Integer token.nextToken() token.nextToken token System.out.println((int)Math.log10(num) + 1) System.out.println System.out System System.out (int)Math.log10(num) + 1 (int)Math.log10(num) Math.log10 Math num 1 input = br.readLine() input br.readLine() br.readLine br String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
} Main
import java.util.StringTokenizer;
import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			String input = br.readLine();
			StringTokenizer token;
			while(input != null){
				token = new StringTokenizer(input);
				int num = Integer.parseInt(token.nextToken()) + Integer.parseInt(token.nextToken());
				
				System.out.println((int)Math.log10(num) + 1);
				input = br.readLine();
			}
		}catch(Exception ex){
			System.exit(0);
		}
	}
}