import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        } String[] line2 = line.split(" "); line2 line.split(" ") line.split line " " Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1])); i new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1])) System.out.println(i.toString().length()) System.out.println System.out System System.out i.toString().length() i.toString().length i.toString() i.toString i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while( (line = br.readLine()) != null) {
            String[] line2 = line.split(" ");
            Integer i = new Integer(Integer.parseInt(line2[0]) + Integer.parseInt(line2[1]));
            System.out.println(i.toString().length());
        }
    }
}