import java.util.Arrays;
import java.util.Scanner;

class Main{
    public static void main(String[] x){
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    }
	public static byte dig(int a){
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] x){
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    }
	public static byte dig(int a){
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	}
} Main public static void main(String[] x){
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    } main {
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    } byte[] k = new byte[200]; k new byte[200] 200 try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){} catch(Exception e){} Exception e {} {
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			} byte i=-127; byte i=-127; i -127 127 i<73 i 73 i++ i++ i {
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			} {
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			} String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				} s==null||s.equals("") s==null s null s.equals("") s.equals s "" {
					k[i+127]=0;
					break;
				} k[i+127]=0 k[i+127] k i+127 i 127 0 break; k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1])) k[i+127] k i+127 i 127 dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1])) dig Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]) Integer.parseInt((s.split(" ",0))[0]) Integer.parseInt Integer (s.split(" ",0))[0] (s.split(" ",0)) s.split s " " 0 0 Integer.parseInt((s.split(" ",0))[1]) Integer.parseInt Integer (s.split(" ",0))[1] (s.split(" ",0)) s.split s " " 0 1 for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		} byte i=-127; byte i=-127; i -127 127 i<73 i 73 i++ i++ i {
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		} {
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		} if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;} k[i+127]>0 k[i+127] k i+127 i 127 0 {System.out.println(k[i+127]);} System.out.println(k[i+127]) System.out.println System.out System System.out k[i+127] k i+127 i 127 {break;} break; String[] x x public static byte dig(int a){
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	} dig {
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	} byte d = 0; d 0 while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		} true {
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		} if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);} a>=10 a 10 {
				d++;
				a/=10;
			} d++ d a/=10 a 10 {return (byte)((int)d+1);} return (byte)((int)d+1); (byte)((int)d+1) (int)d 1 int a a
import java.util.Arrays;
import java.util.Scanner;

class Main{
    public static void main(String[] x){
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    }
	public static byte dig(int a){
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	}
}