import java.io.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	} main {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	} try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		} catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		} Exception e {
			// TODO: handle exception
        	System.exit(0);
		} System.exit(0) System.exit System 0 {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null); line != null line null {
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            } String[] in = line.split(" ", 0); in line.split(" ", 0) line.split line " " 0 String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1])); data "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1])) "" (Integer.parseInt(in[0]) + Integer.parseInt(in[1])) Integer.parseInt(in[0]) Integer.parseInt Integer in[0] in 0 Integer.parseInt(in[1]) Integer.parseInt Integer in[1] in 1 System.out.println(data.length()) System.out.println System.out System System.out data.length() data.length data line = br.readLine() line br.readLine() br.readLine br String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line = br.readLine();
            do{
            	String[] in = line.split(" ", 0);
            	String data = "" + (Integer.parseInt(in[0]) + Integer.parseInt(in[1]));
            	System.out.println(data.length());
            	line = br.readLine();
            }while(line != null);
           	


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

}