import java.io.*;
class Main{
    public static void main (String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    }
} import java.io.*; io.* java class Main{
    public static void main (String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    }
} Main public static void main (String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    } main {

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    } BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String buf; buf while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	} (buf=br.readLine())!= null (buf=br.readLine()) buf br.readLine() br.readLine br null {
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	} String[] buf2=buf.split(" "); buf2 buf.split(" ") buf.split buf " " int  data2=0; data2 0 for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    } int i=0; int i=0; i 0 i!=buf2.length i buf2.length buf2 buf2.length i++ i++ i {
		data2+=Integer.parseInt(buf2[i]);
	    } {
		data2+=Integer.parseInt(buf2[i]);
	    } data2+=Integer.parseInt(buf2[i]) data2 Integer.parseInt(buf2[i]) Integer.parseInt Integer buf2[i] buf2 i String ans=(new Integer(data2)).toString(); ans (new Integer(data2)).toString() (new Integer(data2)).toString (new Integer(data2)) System.out.println(ans.length()) System.out.println System.out System System.out ans.length() ans.length ans String[] args args
import java.io.*;
class Main{
    public static void main (String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	while((buf=br.readLine())!= null){
	    String[] buf2=buf.split(" ");
	    int  data2=0;
	    for(int i=0;i!=buf2.length;i++){
		data2+=Integer.parseInt(buf2[i]);
	    }
	    String ans=(new Integer(data2)).toString();
	    System.out.println(ans.length());
	}
    }
}