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

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String str; str while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			} null != (str = in.readLine()) null (str = in.readLine()) str in.readLine() in.readLine in {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			} String[] sar = str.split(" "); sar str.split(" ") str.split str " " System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length()) System.out.println System.out System System.out String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length() String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])) String.valueOf String Integer.parseInt(sar[0]) + Integer.parseInt(sar[1]) Integer.parseInt(sar[0]) Integer.parseInt Integer sar[0] sar 0 Integer.parseInt(sar[1]) Integer.parseInt Integer sar[1] sar 1 String[] args args public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String str;
			while (null != (str = in.readLine())) {
				String[] sar = str.split(" ");
				System.out.println(String.valueOf(Integer.parseInt(sar[0]) + Integer.parseInt(sar[1])).length());

			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}