import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

} Main public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	} main {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	} String[] data; data Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		} scanner.hasNext() scanner.hasNext scanner {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		} data = scanner.nextLine().split(" ") data scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]); dataInt Integer.parseInt(data[0]) + Integer.parseInt(data[1]) Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 System.out.println(String.valueOf(dataInt).length()) System.out.println System.out System System.out String.valueOf(dataInt).length() String.valueOf(dataInt).length String.valueOf(dataInt) String.valueOf String dataInt scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

} public class Main {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		String[] data;
		
		Scanner scanner = new Scanner(System.in);
		
	
		while(scanner.hasNext()) {
			data = scanner.nextLine().split(" ");
			int dataInt = Integer.parseInt(data[0]) + Integer.parseInt(data[1]);
			System.out.println(String.valueOf(dataInt).length());
		}
		
		scanner.close();
		
	}

}