import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	      String line;
	      while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	      String line;
	      while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		}

	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	      String line;
	      while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		}

	} main {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	      String line;
	      while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		}

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		} (line = in.readLine()) != null (line = in.readLine()) line in.readLine() in.readLine in null { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		} String[] ab = line.split(" "); ab line.split(" ") line.split line " " int a = Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b = Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 String out =Integer.toString(a+b); out Integer.toString(a+b) Integer.toString Integer a+b a b System.out.println(out.length()) System.out.println System.out System System.out out.length() out.length out String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	      String line;
	      while ((line = in.readLine()) != null) { 

			String[] ab = line.split(" ");

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

			 String out =Integer.toString(a+b);
			 System.out.println(out.length());
			
		}

	}
}