import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	}
} Main public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		} {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) List<Integer> lines = new ArrayList<>(); lines new ArrayList<>() while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			} sc.hasNext() sc.hasNext sc {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			} lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt())) lines.add lines Integer.valueOf(sc.nextInt() + sc.nextInt()) Integer.valueOf Integer sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			} int i = 0; int i = 0; i 0 i < lines.size() i lines.size() lines.size lines i++ i++ i {
				System.out.println(String.valueOf(lines.get(i)).length());
			} {
				System.out.println(String.valueOf(lines.get(i)).length());
			} System.out.println(String.valueOf(lines.get(i)).length()) System.out.println System.out System System.out String.valueOf(lines.get(i)).length() String.valueOf(lines.get(i)).length String.valueOf(lines.get(i)) String.valueOf String lines.get(i) lines.get lines i String[] args args public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.valueOf(sc.nextInt() + sc.nextInt()));
			}
			for (int i = 0; i < lines.size(); i++) {
				System.out.println(String.valueOf(lines.get(i)).length());
			}
		}
	}
}