import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} main {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} Scanner sc = null; sc null try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} catch (Exception e) {
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} sc != null sc null {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				} catch (Exception e) {
					// TODO: handle exception
				} Exception e {
					// TODO: handle exception
				} {
					sc.close();
				} sc.close() sc.close sc {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		} sc = new Scanner(System.in) sc new Scanner(System.in) while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			} sc.hasNext() sc.hasNext sc {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			} int[] numList = new int[2]; numList new int[2] 2 for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
					numList[i] = sc.nextInt();
				} {
					numList[i] = sc.nextInt();
				} numList[i] = sc.nextInt() numList[i] numList i sc.nextInt() sc.nextInt sc int numRank = ("" + (numList[0] + numList[1])).length(); numRank ("" + (numList[0] + numList[1])).length() ("" + (numList[0] + numList[1])).length ("" + (numList[0] + numList[1])) "" (numList[0] + numList[1]) numList[0] numList 0 numList[1] numList 1 System.out.println(numRank) System.out.println System.out System System.out numRank String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			while (sc.hasNext()) {
				int[] numList = new int[2];
				for (int i = 0; i < 2; i++) {
					numList[i] = sc.nextInt();
				}
				int numRank = ("" + (numList[0] + numList[1])).length();
				System.out.println(numRank);
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

}