import java.io.*;

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

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