import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	}

	public static String input() {

		return scanner.nextLine();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

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

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	}

	public static String input() {

		return scanner.nextLine();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	} main {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	} while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		} scanner.hasNext() scanner.hasNext scanner {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		} String[] numSet = input().split(" "); numSet input().split(" ") input().split input() input " " int a = Integer.parseInt(numSet[0]); a Integer.parseInt(numSet[0]) Integer.parseInt Integer numSet[0] numSet 0 int b = Integer.parseInt(numSet[1]); b Integer.parseInt(numSet[1]) Integer.parseInt Integer numSet[1] numSet 1 System.out.println(String.valueOf(a + b).length()) System.out.println System.out System System.out String.valueOf(a + b).length() String.valueOf(a + b).length String.valueOf(a + b) String.valueOf String a + b a b close() close String[] args args public static String input() {

		return scanner.nextLine();

	} input {

		return scanner.nextLine();

	} return scanner.nextLine(); scanner.nextLine() scanner.nextLine scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	}

	public static String input() {

		return scanner.nextLine();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	}

	public static String input() {

		return scanner.nextLine();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		while (scanner.hasNext()) {

			String[] numSet = input().split(" ");

			int a = Integer.parseInt(numSet[0]);
			int b = Integer.parseInt(numSet[1]);

			System.out.println(String.valueOf(a + b).length());

		}

		close();

	}

	public static String input() {

		return scanner.nextLine();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}