
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	}
} Main public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	} BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() String s; s while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		} ( s = reader.readLine())!=null ( s = reader.readLine()) s reader.readLine() reader.readLine reader null {
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		} String[] line = s.split(" "); line s.split(" ") s.split s " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 builder.append(String.valueOf(a+b).length()).append('\n') builder.append(String.valueOf(a+b).length()).append builder.append(String.valueOf(a+b).length()) builder.append builder String.valueOf(a+b).length() String.valueOf(a+b).length String.valueOf(a+b) String.valueOf String a+b a b '\n' System.out.print(builder) System.out.print System.out System System.out builder String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	}
} public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	}
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		String s;
		while(( s = reader.readLine())!=null){
			String[] line = s.split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			builder.append(String.valueOf(a+b).length()).append('\n');
			
		}
		System.out.print(builder);
		
	}
}