import java.util.*;
 
class Main {
    public static void main(String[] args) {
    	
    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> digitList = new ArrayList<>(); 
    	
    	int a, b;
    	int digit;
    	String strDigit;
    	int cnt = 0;
    	while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	}
    	for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	}
	}
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
    	
    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> digitList = new ArrayList<>(); 
    	
    	int a, b;
    	int digit;
    	String strDigit;
    	int cnt = 0;
    	while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	}
    	for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	}
	}
} Main public static void main(String[] args) {
    	
    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> digitList = new ArrayList<>(); 
    	
    	int a, b;
    	int digit;
    	String strDigit;
    	int cnt = 0;
    	while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	}
    	for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	}
	} main {
    	
    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> digitList = new ArrayList<>(); 
    	
    	int a, b;
    	int digit;
    	String strDigit;
    	int cnt = 0;
    	while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	}
    	for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> digitList = new ArrayList<>(); digitList new ArrayList<>() int a a b; b int digit; digit String strDigit; strDigit int cnt = 0; cnt 0 while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	} sc.hasNext() sc.hasNext sc {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc digit = a + b digit a + b a b strDigit = String.valueOf(digit) strDigit String.valueOf(digit) String.valueOf String digit digitList.add(strDigit.length()) digitList.add digitList strDigit.length() strDigit.length strDigit cnt++ cnt for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	} int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i {
    		System.out.println(digitList.get(i));
    	} {
    		System.out.println(digitList.get(i));
    	} System.out.println(digitList.get(i)) System.out.println System.out System System.out digitList.get(i) digitList.get digitList i String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
    	
    	Scanner sc = new Scanner(System.in);
    	ArrayList<Integer> digitList = new ArrayList<>(); 
    	
    	int a, b;
    	int digit;
    	String strDigit;
    	int cnt = 0;
    	while(sc.hasNext()) {
    		a = sc.nextInt();
    		b = sc.nextInt();
    		digit = a + b;
    		strDigit = String.valueOf(digit);
    		digitList.add(strDigit.length());
    		cnt++;
    	}
    	for(int i = 0; i < cnt; i++) {
    		System.out.println(digitList.get(i));
    	}
	}
}