
import java.util.ArrayList;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	}
} import java.util.ArrayList; ArrayList java.util import java.util.NoSuchElementException; NoSuchElementException java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	} main {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> result = new ArrayList<Integer>(); result new ArrayList<Integer>() try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		} catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		} NoSuchElementException e {
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		} {
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		} while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			} sc.hasNextInt() sc.hasNextInt sc {
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc result.add(a + b) result.add result a + b a b for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		} int i = 0; int i = 0; i 0 i < result.size() i result.size() result.size result i++ i++ i {
			System.out.println(String.valueOf(result.get(i)).length());
		} {
			System.out.println(String.valueOf(result.get(i)).length());
		} System.out.println(String.valueOf(result.get(i)).length()) System.out.println System.out System System.out String.valueOf(result.get(i)).length() String.valueOf(result.get(i)).length String.valueOf(result.get(i)) String.valueOf String result.get(i) result.get result i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	}
} Main

import java.util.ArrayList;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		try{
			while(sc.hasNextInt()){
				int a = sc.nextInt();
				int b = sc.nextInt();
				result.add(a + b);
			}
		}catch(NoSuchElementException e){
			//üÍªIíÁ½ç½à¹¸ÉðÌubNÖ
		}
		
		for(int i = 0; i < result.size(); i++){
			System.out.println(String.valueOf(result.get(i)).length());
		}
	
	}
}