import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} Main public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    } main {
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    } String str; str try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	} catch(Exception e){
	    System.exit(0);
	} Exception e {
	    System.exit(0);
	} System.exit(0) System.exit System 0 {
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) str = br.readLine() str br.readLine() br.readLine br while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    } str !=null str null {
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    } String[] strary = str.split(" "); strary str.split(" ") str.split str " " int n1 = Integer.parseInt(strary[0]); n1 Integer.parseInt(strary[0]) Integer.parseInt Integer strary[0] strary 0 int n2 = Integer.parseInt(strary[1]); n2 Integer.parseInt(strary[1]) Integer.parseInt Integer strary[1] strary 1 int sum = n1 + n2; sum n1 + n2 n1 n2 String s = Integer.toString(sum); s Integer.toString(sum) Integer.toString Integer sum System.out.println((s.length())) System.out.println System.out System System.out (s.length()) s.length s str = br.readLine() str br.readLine() br.readLine br String args[] args
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    str = br.readLine();
	    while(str !=null){
	    String[] strary = str.split(" ");
	    int n1 = Integer.parseInt(strary[0]);
	    int n2 = Integer.parseInt(strary[1]);
	    int sum = n1 + n2;
	    String s = Integer.toString(sum);
	    System.out.println((s.length()));
	    str = br.readLine();
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
}