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

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		} (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		} String[] num = str.split(" ",0); num str.split(" ",0) str.split str " " 0 int x = Integer.parseInt(num[0]); x Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int y = Integer.parseInt(num[1]); y Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int z = x + y; z x + y x y System.out.println(String.valueOf(z).length()) System.out.println System.out System System.out String.valueOf(z).length() String.valueOf(z).length String.valueOf(z) String.valueOf String z String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
} Main
import java.io.*;
import java.util.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String str;
		while((str = br.readLine()) != null){
			String[] num = str.split(" ",0);
			int x = Integer.parseInt(num[0]);
			int y = Integer.parseInt(num[1]);
			int z = x + y;
			System.out.println(String.valueOf(z).length());
		}
	}
}