import java.util.*;

public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	}
	
	public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	}
}  import java.util.*; util.* java public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	}
	
	public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> dataset = new ArrayList<Integer>(); dataset new ArrayList<Integer>() while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		} sc.hasNextLine() sc.hasNextLine sc {
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		} String[] splitted = sc.nextLine().split("\\s+"); splitted sc.nextLine().split("\\s+") sc.nextLine().split sc.nextLine() sc.nextLine sc "\\s+" dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1])) dataset.add dataset Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]) Integer.parseInt(splitted[0]) Integer.parseInt Integer splitted[0] splitted 0 Integer.parseInt(splitted[1]) Integer.parseInt Integer splitted[1] splitted 1 for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		} int i = 0; int i = 0; i 0 i < dataset.size() i dataset.size() dataset.size dataset ++i ++i i {
			System.out.println(DigitOf(dataset.get(i)));
		} {
			System.out.println(DigitOf(dataset.get(i)));
		} System.out.println(DigitOf(dataset.get(i))) System.out.println System.out System System.out DigitOf(dataset.get(i)) DigitOf dataset.get(i) dataset.get dataset i String[] args args public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	} DigitOf {
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	} if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		} num < 10 num 10 {
			return 1;
		} return 1; 1 {
			return 1 + DigitOf(num/10);
		} return 1 + DigitOf(num/10); 1 + DigitOf(num/10) 1 DigitOf(num/10) DigitOf num/10 num 10 Integer num num public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	}
	
	public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	}
} public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	}
	
	public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> dataset = new ArrayList<Integer>();
		while(sc.hasNextLine())
		{
			String[] splitted = sc.nextLine().split("\\s+");
			dataset.add(Integer.parseInt(splitted[0]) + Integer.parseInt(splitted[1]));
		}
		
		for(int i = 0; i < dataset.size(); ++i)
		{
			System.out.println(DigitOf(dataset.get(i)));
		}
	
	}
	
	public static int DigitOf(Integer num)
	{
		if(num < 10)
		{
			return 1;
		}
		else
		{
			return 1 + DigitOf(num/10);
		}
	}
} 