import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b b w; w String str; str String[] s; s str=br.readLine() str br.readLine() br.readLine br while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		} str !=null str null {
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		} StringBuilder out=new StringBuilder(); out new StringBuilder() s=str.split(" ") s str.split(" ") str.split str " " a=Integer.parseInt(s[0]) a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 b=Integer.parseInt(s[1]) b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 w=a+b w a+b a b out.append(w) out.append out w System.out.println(out.length()) System.out.println System.out System System.out out.length() out.length out str=br.readLine() str br.readLine() br.readLine br String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a,b,w;
		String str;
		String[] s;
		str=br.readLine();
		while(str !=null){
			StringBuilder out=new StringBuilder();
			s=str.split(" ");
			a=Integer.parseInt(s[0]);
			b=Integer.parseInt(s[1]);
			w=a+b;
			out.append(w);
			System.out.println(out.length());
			str=br.readLine();
		}
	}
}