import java.io.*;
import java.util.*;


public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s; s while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		} (s = br.readLine()) != null (s = br.readLine()) s br.readLine() br.readLine br null {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		} String[] lc = s.split(" "); lc s.split(" ") s.split s " " int a = Integer.parseInt(lc[0]); a Integer.parseInt(lc[0]) Integer.parseInt Integer lc[0] lc 0 int b = Integer.parseInt(lc[1]); b Integer.parseInt(lc[1]) Integer.parseInt Integer lc[1] lc 1 System.out.println((int)Math.log10(a+b)+1) System.out.println System.out System System.out (int)Math.log10(a+b)+1 (int)Math.log10(a+b) Math.log10 Math a+b a b 1 String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	}
} Main
import java.io.*;
import java.util.*;


public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s;
		while ((s = br.readLine()) != null) {
			String[] lc = s.split(" ");
			int a = Integer.parseInt(lc[0]);
			int b = Integer.parseInt(lc[1]);
			
			System.out.println((int)Math.log10(a+b)+1);
		}

	}
}