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

class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	}


	}

} 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 br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	}


	}

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	}


	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	}


	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String  str[] = new String[1]; str new String[1] 1 try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	} catch(Exception e){
		System.exit(0);
	} Exception e {
		System.exit(0);
	} System.exit(0) System.exit System 0 {
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	} while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		} str !=null str null {

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length()) System.out.println System.out System System.out String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length() String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])) String.valueOf String Integer.parseInt(str[0])+Integer.parseInt(str[1]) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 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 br = new BufferedReader(new InputStreamReader(System.in));

		String  str[] = new String[1];
		try{
		while(str !=null){

			str = br.readLine().split(" ");

			System.out.println(String.valueOf(Integer.parseInt(str[0])+Integer.parseInt(str[1])).length());

		}

	}catch(Exception e){
		System.exit(0);
	}


	}

}