import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

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

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