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

class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		}
	}
	
	private static int getDigit(int num){
		String numStr = Integer.toString(num);
		return numStr.length();
	}

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

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		}
	}
	
	private static int getDigit(int num){
		String numStr = Integer.toString(num);
		return numStr.length();
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		}
	} main {
		// TODO Auto-generated method stub
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		}
	} try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		} catch(Exception e){
			return;
		} Exception e {
			return;
		} return; {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input =""; input "" do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals("")); !input.equals("") input.equals("") input.equals input "" {
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			} input = br.readLine() input br.readLine() br.readLine br String[] inputs = input.split(" "); inputs input.split(" ") input.split input " " int num1 = Integer.parseInt(inputs[0]); num1 Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int num2 = Integer.parseInt(inputs[1]); num2 Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 System.out.println(getDigit(num1 + num2)) System.out.println System.out System System.out getDigit(num1 + num2) getDigit num1 + num2 num1 num2 String[] args args private static int getDigit(int num){
		String numStr = Integer.toString(num);
		return numStr.length();
	} getDigit {
		String numStr = Integer.toString(num);
		return numStr.length();
	} String numStr = Integer.toString(num); numStr Integer.toString(num) Integer.toString Integer num return numStr.length(); numStr.length() numStr.length numStr int num num
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String input ="";
			do{
				input = br.readLine();
				String[] inputs = input.split(" ");
				int num1 = Integer.parseInt(inputs[0]);
				int num2 = Integer.parseInt(inputs[1]);
				System.out.println(getDigit(num1 + num2));
			}while(!input.equals(""));
		}
		catch(Exception e){
			return;
		}
	}
	
	private static int getDigit(int num){
		String numStr = Integer.toString(num);
		return numStr.length();
	}

}