import java.io.*;
import static java.lang.Integer.parseInt;

public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    }
} import java.io.*; io.* java import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str int i = 0; i 0 while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        } (str = br.readLine())!=null&&i<200 (str = br.readLine())!=null (str = br.readLine()) str br.readLine() br.readLine br null i<200 i 200 {
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        } String[] num = str.split(" ",0); num str.split(" ",0) str.split str " " 0 int x = parseInt(num[0]); x parseInt(num[0]) parseInt num[0] num 0 int y = parseInt(num[1]); y parseInt(num[1]) parseInt num[1] num 1 if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            } 0<=x&&x<=1000000&&0<=y&&y<=1000000 0<=y 0<=x&&x<=1000000&&0<=y&&y<=1000000 0<=x 0 x x<=1000000 x 1000000 0<=y 0 y y<=1000000 y 1000000 {
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            } int z = x+y; z x+y x y System.out.println(Integer.toString(z).length()) System.out.println System.out System System.out Integer.toString(z).length() Integer.toString(z).length Integer.toString(z) Integer.toString Integer z i++ i String[] args args public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    }
} public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    }
} Main
import java.io.*;
import static java.lang.Integer.parseInt;

public class Main {
    
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str;
        int i = 0;
        while((str = br.readLine())!=null&&i<200){
            String[] num = str.split(" ",0);
            int x = parseInt(num[0]);
            int y = parseInt(num[1]);
            if(0<=x&&x<=1000000&&0<=y&&y<=1000000){
            int z = x+y;
            System.out.println(Integer.toString(z).length());
            }
            i++;
        }
    }
}