
import java.io.*;

public class Main {

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

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
} import java.io.*; io.* java public class Main {

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

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
} Main //ツ　0002
	public static void main(String[] args) throws IOException {
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	} main {
		
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		} ; {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		} {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		} String s = reader.readLine(); s reader.readLine() reader.readLine reader if (s == null)
				break; s == null s null break; String[] sp = s.split(" "); sp s.split(" ") s.split s " " int a = Integer.parseInt(sp[0]); a Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 int b = Integer.parseInt(sp[1]); b Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 int c = a+b; c a+b a b String ans = "" + c; ans "" + c "" c System.out.printf("%s\n", ans.length()) System.out.printf System.out System System.out "%s\n" ans.length() ans.length ans reader.close() reader.close reader String[] args args public class Main {

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

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
} public class Main {

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

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
} Main

import java.io.*;

public class Main {

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

		for(;;) {
		
			String s = reader.readLine();
			if (s == null)
				break;
			
			String[] sp = s.split(" ");
			int a = Integer.parseInt(sp[0]);
			int b = Integer.parseInt(sp[1]);
			int c = a+b;
			String ans = "" + c;
			System.out.printf("%s\n", ans.length());
		}
		reader.close();
	}
}