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

//public class Problem0002_DigitNumber {
public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		} catch(Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line; line while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			} (line = reader.readLine()) != null (line = reader.readLine()) line reader.readLine() reader.readLine reader null {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			} try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				} catch(NumberFormatException e) {
					break;
				} NumberFormatException e {
					break;
				} break; {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} String[] data = line.split(" "); data line.split(" ") line.split line " " int[] numbers = new int[2]; numbers new int[2] 2 for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
						numbers[i] = Integer.parseInt(data[i]);
					} {
						numbers[i] = Integer.parseInt(data[i]);
					} numbers[i] = Integer.parseInt(data[i]) numbers[i] numbers i Integer.parseInt(data[i]) Integer.parseInt Integer data[i] data i int sum = numbers[0] + numbers[1]; sum numbers[0] + numbers[1] numbers[0] numbers 0 numbers[1] numbers 1 int result = 0; result 0 while(sum > 0) {
						sum = sum / 10;
						result++;
					} sum > 0 sum 0 {
						sum = sum / 10;
						result++;
					} sum = sum / 10 sum sum / 10 sum 10 result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

//public class Problem0002_DigitNumber {
public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			
			String line;
			while((line = reader.readLine()) != null) {
				try {
					String[] data = line.split(" ");
					int[] numbers = new int[2];
					for(int i = 0; i < 2; i++) {
						numbers[i] = Integer.parseInt(data[i]);
					}
					int sum = numbers[0] + numbers[1];
					int result = 0;
					while(sum > 0) {
						sum = sum / 10;
						result++;
					}
					System.out.println(result);
				} catch(NumberFormatException e) {
					break;
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}