
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    }
 
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
 
    public static void main(String[] args) throws IOException {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    }
 
} Main public static void main(String[] args) throws IOException {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    } main {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        } catch (Exception ex) {
            System.exit(0);
        } Exception ex {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } String s = br.readLine(); s br.readLine() br.readLine br StringTokenizer st; st while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            } s != null s null {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            } st = new StringTokenizer(s) st new StringTokenizer(s) int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ; p Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st System.out.println((int)Math.log10(p)+1) System.out.println System.out System System.out (int)Math.log10(p)+1 (int)Math.log10(p) Math.log10 Math p 1 s =br.readLine() s 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));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    }
 
} public class Main {
 
    public static void main(String[] args) throws IOException {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    }
 
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
         
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        try {
             
            String s = br.readLine();
            StringTokenizer st;
             
            while (s != null) {
                st = new StringTokenizer(s);
                int p =Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken()) ;
                 
                System.out.println((int)Math.log10(p)+1);
                s =br.readLine();
            }
 
        } catch (Exception ex) {
            System.exit(0);
        }
    }
 
}